From 53b82f972a59710ed28b01508ab0b2c5ede1eaa1 Mon Sep 17 00:00:00 2001 From: ines Date: Fri, 2 Jun 2017 10:57:06 +0200 Subject: [PATCH] Add strings to Vocab in init, instead of StringStore --- spacy/vocab.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/vocab.pyx b/spacy/vocab.pyx index 2f1822c26..57518f3aa 100644 --- a/spacy/vocab.pyx +++ b/spacy/vocab.pyx @@ -56,7 +56,7 @@ cdef class Vocab: self.strings = StringStore() if strings: for string in strings: - self.strings.add(string) + _ = self[string] for name in tag_map.keys(): if name: self.strings.add(name)