mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-08 13:53:13 +03:00
Clean up remnant of frozen in StringStore
This commit is contained in:
parent
a002264fec
commit
66e2eb8f39
|
@ -261,10 +261,6 @@ cdef class StringStore:
|
||||||
cdef Utf8Str* value = <Utf8Str*>self._map.get(key)
|
cdef Utf8Str* value = <Utf8Str*>self._map.get(key)
|
||||||
if value is not NULL:
|
if value is not NULL:
|
||||||
return value
|
return value
|
||||||
value = <Utf8Str*>self._oov.get(key)
|
|
||||||
if value is not NULL:
|
|
||||||
return value
|
|
||||||
|
|
||||||
value = _allocate(self.mem, <unsigned char*>utf8_string, length)
|
value = _allocate(self.mem, <unsigned char*>utf8_string, length)
|
||||||
self._map.set(key, value)
|
self._map.set(key, value)
|
||||||
self.keys.push_back(key)
|
self.keys.push_back(key)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user