mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-14 21:57:15 +03:00
14 lines
261 B
Python
14 lines
261 B
Python
from ...vocab import Vocab
|
|
|
|
def test_lexeme_text():
|
|
vocab = Vocab()
|
|
lex = vocab[u'the']
|
|
assert lex.text == u'the'
|
|
|
|
|
|
def test_lexeme_lex_id():
|
|
vocab = Vocab()
|
|
lex1 = vocab[u'the']
|
|
lex2 = vocab[u'be']
|
|
assert lex1.lex_id != lex2.lex_id
|