mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
18 lines
258 B
Python
18 lines
258 B
Python
import pytest
|
|
|
|
from spacy.en import English
|
|
|
|
@pytest.fixture
|
|
def EN():
|
|
return English(tag=True)
|
|
|
|
def test_range_iter(EN):
|
|
for i in range(len(EN.vocab)):
|
|
lex = EN.vocab[i]
|
|
|
|
|
|
def test_iter(EN):
|
|
i = 0
|
|
for lex in EN.vocab:
|
|
i += 1
|