spaCy/tests/vocab/test_iter_lexicon.py

13 lines
185 B
Python
Raw Normal View History

import pytest
def test_range_iter(en_vocab):
for i in range(len(en_vocab)):
lex = en_vocab[i]
2015-04-19 22:39:18 +03:00
def test_iter(en_vocab):
i = 0
for lex in en_vocab:
i += 1