mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 12:18:04 +03:00
16 lines
227 B
Python
16 lines
227 B
Python
|
import pytest
|
||
|
|
||
|
from spacy.en import EN
|
||
|
|
||
|
def test_range_iter():
|
||
|
EN.load()
|
||
|
for i in range(len(EN.lexicon)):
|
||
|
lex = EN.lexicon[i]
|
||
|
|
||
|
|
||
|
def test_iter():
|
||
|
EN.load()
|
||
|
i = 0
|
||
|
for lex in EN.lexicon:
|
||
|
i += 1
|