mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
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()
|
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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user