mirror of
https://github.com/explosion/spaCy.git
synced 2025-05-02 23:03:41 +03:00
* Delete print statements from stringstore
This commit is contained in:
parent
b186a66bae
commit
09a3e54176
|
@ -58,12 +58,10 @@ cdef class StringStore:
|
||||||
strings = []
|
strings = []
|
||||||
cdef Utf8Str* string
|
cdef Utf8Str* string
|
||||||
cdef bytes py_string
|
cdef bytes py_string
|
||||||
print "Dump strings"
|
|
||||||
for i in range(self.size):
|
for i in range(self.size):
|
||||||
string = &self.strings[i]
|
string = &self.strings[i]
|
||||||
py_string = string.chars[:string.length]
|
py_string = string.chars[:string.length]
|
||||||
strings.append(py_string)
|
strings.append(py_string)
|
||||||
print len(strings)
|
|
||||||
with open(loc, 'w') as file_:
|
with open(loc, 'w') as file_:
|
||||||
ujson.dump(strings, file_, ensure_ascii=False)
|
ujson.dump(strings, file_, ensure_ascii=False)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user