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])
def to_json(self, underscore=None):
"""Convert a Doc to JSON. The format it produces will be the new format
for the `spacy train` command (not implemented yet).
"""Convert a Doc to JSON.
underscore (list): Optional list of string names of custom doc._.
attributes. Attribute values need to be JSON-serializable. Values will

File diff suppressed because one or more lines are too long