158e4cb12d7ab478ea230e099a18644b2ac2bd17,estnltk/corpus.py,,read_json_corpus,#Any#,10

Before Change


    list of Text
    
    documents = []
    with codecs.open(fnm, "rb", "ascii") as f:
        line = f.readline()
        while line != "":
            documents.append(Text(json.loads(line)))
            line = f.readline()
    return documents


def write_json_corpus(documents, fnm):

After Change


    -------
    list of Text
    
    return [text for text in yield_json_corpus(fnm)]


def write_json_corpus(documents, fnm):
    Write a lisst of Text instances as JSON corpus on disk.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: estnltk/estnltk
Commit Name: 158e4cb12d7ab478ea230e099a18644b2ac2bd17
Time: 2015-07-01
Author: tpetmanson@gmail.com
File Name: estnltk/corpus.py
Class Name:
Method Name: read_json_corpus


Project Name: OpenNMT/OpenNMT-py
Commit Name: 5830b75b375a5223f09d206ea2850902082f96ee
Time: 2017-12-25
Author: nasa4836@gmail.com
File Name: preprocess.py
Class Name:
Method Name: get_num_features


Project Name: stanfordnlp/stanza
Commit Name: ae1a7796a3df1add1ee420467afea82bde8bd44c
Time: 2018-06-07
Author: zyh@stanford.edu
File Name: models/lemma/loader.py
Class Name: DataLoader
Method Name: load_file