mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 02:06:31 +03:00
Tidy up and auto-format [ci skip]
This commit is contained in:
parent
6dd2832438
commit
73dc63d3bf
|
@ -2,7 +2,7 @@
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from ...symbols import POS, PUNCT, SYM, ADJ, CCONJ, NUM, DET, ADV, ADP, X, VERB
|
from ...symbols import POS, PUNCT, SYM, ADJ, CCONJ, NUM, DET, ADV, ADP, X, VERB
|
||||||
from ...symbols import NOUN, PROPN, PART, INTJ, SPACE, PRON, AUX
|
from ...symbols import NOUN, PROPN, PART, INTJ, SPACE, PRON
|
||||||
|
|
||||||
|
|
||||||
TAG_MAP = {
|
TAG_MAP = {
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from spacy.lang.sv.syntax_iterators import SYNTAX_ITERATORS
|
|
||||||
from ...util import get_doc
|
from ...util import get_doc
|
||||||
|
|
||||||
|
|
||||||
SV_NP_TEST_EXAMPLES = [
|
SV_NP_TEST_EXAMPLES = [
|
||||||
(
|
(
|
||||||
"En student läste en bok", # A student read a book
|
"En student läste en bok", # A student read a book
|
||||||
|
@ -45,4 +45,3 @@ def test_sv_noun_chunks(sv_tokenizer, text, pos, deps, heads, expected_noun_chun
|
||||||
assert len(noun_chunks) == len(expected_noun_chunks)
|
assert len(noun_chunks) == len(expected_noun_chunks)
|
||||||
for i, np in enumerate(noun_chunks):
|
for i, np in enumerate(noun_chunks):
|
||||||
assert np.text == expected_noun_chunks[i]
|
assert np.text == expected_noun_chunks[i]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user