3141e04822a8c40e0d64e51a040305ade3f66d8c,spacy/cli/converters/conllu2json.py,,conllu2json,#Any#Any#Any#Any#,8

Before Change


    output_file = output_path / output_filename
    with output_file.open("w", encoding="utf-8") as f:
        f.write(json_dumps(docs))
    prints("Created %d documents" % len(docs),
           title="Generated output file %s" % path2str(output_file))


def read_conllx(input_path, use_morphology=False, n=0):
    text = input_path.open("r", encoding="utf-8").read()

After Change


    output_file = output_path / output_filename
    with output_file.open("w", encoding="utf-8") as f:
        f.write(json_dumps(docs))
    prints(Messages.M033.format(n_docs=len(docs)),
           title=Messages.M032.format(name=path2str(output_file)))


def read_conllx(input_path, use_morphology=False, n=0):
    text = input_path.open("r", encoding="utf-8").read()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 13

Instances


Project Name: explosion/spaCy
Commit Name: 3141e04822a8c40e0d64e51a040305ade3f66d8c
Time: 2018-04-03
Author: ines.montani@gmail.com
File Name: spacy/cli/converters/conllu2json.py
Class Name:
Method Name: conllu2json


Project Name: explosion/spaCy
Commit Name: 3141e04822a8c40e0d64e51a040305ade3f66d8c
Time: 2018-04-03
Author: ines.montani@gmail.com
File Name: spacy/cli/converters/conll_ner2json.py
Class Name:
Method Name: conll_ner2json


Project Name: explosion/spaCy
Commit Name: 3141e04822a8c40e0d64e51a040305ade3f66d8c
Time: 2018-04-03
Author: ines.montani@gmail.com
File Name: spacy/cli/converters/iob2json.py
Class Name:
Method Name: iob2json