mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-14 05:37:03 +03:00
* Upd tests
This commit is contained in:
parent
aceae64581
commit
58eeff294e
|
@ -11,7 +11,7 @@ data_dir = os.environ.get('SPACY_DATA', LOCAL_DATA_DIR)
|
||||||
|
|
||||||
@pytest.mark.models
|
@pytest.mark.models
|
||||||
def get_orphan_token(text, i):
|
def get_orphan_token(text, i):
|
||||||
nlp = English(load_vectors=False, data_dir=data_dir)
|
nlp = English(data_dir=data_dir)
|
||||||
tokens = nlp(text)
|
tokens = nlp(text)
|
||||||
gc.collect()
|
gc.collect()
|
||||||
token = tokens[i]
|
token = tokens[i]
|
||||||
|
@ -41,7 +41,7 @@ def _orphan_from_list(toks):
|
||||||
@pytest.mark.models
|
@pytest.mark.models
|
||||||
def test_list_orphans():
|
def test_list_orphans():
|
||||||
# Test case from NSchrading
|
# Test case from NSchrading
|
||||||
nlp = English(load_vectors=False, data_dir=data_dir)
|
nlp = English(data_dir=data_dir)
|
||||||
samples = ["a", "test blah wat okay"]
|
samples = ["a", "test blah wat okay"]
|
||||||
lst = []
|
lst = []
|
||||||
for sample in samples:
|
for sample in samples:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user