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

Before Change


    
    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

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: 5

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: geekcomputers/Python
Commit Name: 7c977cb5f370d2e8a8ceda762f8d22a3c668e8f0
Time: 2020-03-22
Author: alopex4@163.com
File Name: fileinfo.py
Class Name:
Method Name:


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