mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-13 09:42:26 +03:00
* Upd iteration test
This commit is contained in:
parent
61df50b598
commit
b864f0e539
|
@ -1,15 +1,17 @@
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from spacy.en import EN
|
from spacy.en import English
|
||||||
|
|
||||||
def test_range_iter():
|
@pytest.fixture
|
||||||
EN.load()
|
def EN():
|
||||||
for i in range(len(EN.lexicon)):
|
return English(pos_tag=True)
|
||||||
lex = EN.lexicon[i]
|
|
||||||
|
def test_range_iter(EN):
|
||||||
|
for i in range(len(EN.vocab)):
|
||||||
|
lex = EN.vocab[i]
|
||||||
|
|
||||||
|
|
||||||
def test_iter():
|
def test_iter(EN):
|
||||||
EN.load()
|
|
||||||
i = 0
|
i = 0
|
||||||
for lex in EN.lexicon:
|
for lex in EN.vocab:
|
||||||
i += 1
|
i += 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user