mirror of https://github.com/explosion/spaCy.git
Add strings to Vocab in init, instead of StringStore
This commit is contained in:
parent
023f38bdd4
commit
53b82f972a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue