From e1dfaeed8a60236b243af402be2bd357b5dc6215 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 12 Sep 2015 23:49:38 +0200 Subject: [PATCH] * Check serializer freqs exist before loading --- spacy/vocab.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/vocab.pyx b/spacy/vocab.pyx index a3d6b999b..8d0ea932f 100644 --- a/spacy/vocab.pyx +++ b/spacy/vocab.pyx @@ -50,7 +50,7 @@ cdef class Vocab: if path.exists(path.join(data_dir, 'serializer.json')): serializer_freqs = json.load(open(path.join(data_dir, 'serializer.json'))) else: - serialize_feqs=None + serializer_freqs = None cdef Vocab self = cls(get_lex_attr=get_lex_attr, vectors=vectors, tag_map=tag_map, lemmatizer=lemmatizer, serializer_freqs=serializer_freqs)