mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-04 13:40:34 +03:00
Update serializer test.
This commit is contained in:
parent
7d5212f131
commit
c3a8a1cf51
|
@ -28,7 +28,7 @@ def vocab():
|
||||||
else:
|
else:
|
||||||
path = util.match_best_version('en', None, path)
|
path = util.match_best_version('en', None, path)
|
||||||
|
|
||||||
vocab = English.Defaults('en', path).Vocab()
|
vocab = English.Defaults.create_vocab()
|
||||||
lex = vocab['dog']
|
lex = vocab['dog']
|
||||||
assert vocab[vocab.strings['dog']].orth_ == 'dog'
|
assert vocab[vocab.strings['dog']].orth_ == 'dog'
|
||||||
lex = vocab['the']
|
lex = vocab['the']
|
||||||
|
|
Loading…
Reference in New Issue
Block a user