Add strings to Vocab in init, instead of StringStore

This commit is contained in:
ines 2017-06-02 10:57:06 +02:00
parent 023f38bdd4
commit 53b82f972a
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ cdef class Vocab:
self.strings = StringStore() self.strings = StringStore()
if strings: if strings:
for string in strings: for string in strings:
self.strings.add(string) _ = self[string]
for name in tag_map.keys(): for name in tag_map.keys():
if name: if name:
self.strings.add(name) self.strings.add(name)