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