spaCy/tests/test_iter_lexicon.py

16 lines
227 B
Python
Raw Normal View History

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