0bf6441863433575aebcbd0b238d27d95830c015,spacy/cli/converters/iob2json.py,,iob2json,#,10
Before Change
docs = []
for group in minibatch(docs, n_sents):
group = list(group)
first = group.pop(0)
to_extend = first["paragraphs"][0]["sentences"]
for sent in group[1:]:
to_extend.extend(sent["paragraphs"][0]["sentences"])
docs.append(first)
return docs
After Change
Convert IOB files into JSON format for use with train cli.
sentences = read_iob(input_data.split("\n"))
docs = merge_sentences(sentences, n_sents)
return docs
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: explosion/spaCy
Commit Name: 0bf6441863433575aebcbd0b238d27d95830c015
Time: 2019-05-11
Author: ines@ines.io
File Name: spacy/cli/converters/iob2json.py
Class Name:
Method Name: iob2json
Project Name: YerevaNN/mimic3-benchmarks
Commit Name: 7567cc646d258e40dde9790a28a9b264ccd494fb
Time: 2017-08-27
Author: harhro@gmail.com
File Name: mimic3models/split_train_val.py
Class Name:
Method Name:
Project Name: YerevaNN/mimic3-benchmarks
Commit Name: 5d353701dd56a1fc8abc15e4082e33b7bed2a241
Time: 2017-08-09
Author: harhro@gmail.com
File Name: mimic3models/split_train_val.py
Class Name:
Method Name: