From 0c76143b72601be751162726aaeb4c3fd79073b3 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 7 Jul 2014 05:10:46 +0200 Subject: [PATCH] * Give value for assert --- spacy/spacy.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/spacy.pyx b/spacy/spacy.pyx index 1c04b3d19..ca04ad82c 100644 --- a/spacy/spacy.pyx +++ b/spacy/spacy.pyx @@ -16,7 +16,7 @@ cdef load_tokenization(Vocab& vocab, dict bacov, token_rules): cdef StringHash hashed for chunk, lex, tokens in token_rules: hashed = hash_string(chunk, len(chunk)) - assert vocab[hashed] == 0 + assert vocab[hashed] == 0, chunk word = _add(vocab, bacov, NULL, hashed, lex, len(lex), len(lex)) for i, lex in enumerate(tokens): token_string = '%s:@:%d:@:%s' % (chunk, i, lex)