mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-27 02:16:32 +03:00
small fixes
This commit is contained in:
parent
410b54e10e
commit
cc926267f8
|
@ -1193,8 +1193,7 @@ cdef class Doc:
|
||||||
retokenizer.merge(span, attributes[i])
|
retokenizer.merge(span, attributes[i])
|
||||||
|
|
||||||
def to_json(self, underscore=None):
|
def to_json(self, underscore=None):
|
||||||
"""Convert a Doc to JSON. The format it produces will be the new format
|
"""Convert a Doc to JSON.
|
||||||
for the `spacy train` command (not implemented yet).
|
|
||||||
|
|
||||||
underscore (list): Optional list of string names of custom doc._.
|
underscore (list): Optional list of string names of custom doc._.
|
||||||
attributes. Attribute values need to be JSON-serializable. Values will
|
attributes. Attribute values need to be JSON-serializable. Values will
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user