* Fix test of serializer

This commit is contained in:
Matthew Honnibal 2015-11-03 19:45:16 +11:00
parent d06ba26371
commit ee3f9ba581
1 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ import pytest
import numpy import numpy
from spacy.language import Language from spacy.language import Language
from spacy.en import English
from spacy.vocab import Vocab from spacy.vocab import Vocab
from spacy.tokens.doc import Doc from spacy.tokens.doc import Doc
from spacy.tokenizer import Tokenizer from spacy.tokenizer import Tokenizer
@ -20,7 +21,7 @@ from spacy.serialize.bits import BitArray
@pytest.fixture @pytest.fixture
def vocab(): def vocab():
vocab = Language.default_vocab() vocab = English.default_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']