small fixes

This commit is contained in:
svlandeg 2020-08-21 15:05:40 +02:00
parent 410b54e10e
commit cc926267f8
2 changed files with 2 additions and 3 deletions

View File

@ -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