3a5abc1ad1da00175577c1e65f90d0b17e2b1bd8,underthesea/corpus/validate_corpus.py,,validate_sentence,#,64

Before Change


    base_name = basename(file)
    // sent_id should be valid
    f = open(file)
    sentences = f.read().split("\n\n")
    for sentence in sentences:
        nodes = sentence.split("\n")
        comment_nodes = [node for node in nodes if node.startswith("//")]
        has_sent_id = False

After Change


        if line == "\n":
            if previous_line is None:
                previous_line = "\n"
            elif previous_line == "\n":
                stop_reading = True
                previous_line = None
            sentence += line
        else:
            sentence += line
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: undertheseanlp/underthesea
Commit Name: 3a5abc1ad1da00175577c1e65f90d0b17e2b1bd8
Time: 2020-11-02
Author: anhv.ict91@gmail.com
File Name: underthesea/corpus/validate_corpus.py
Class Name:
Method Name: validate_sentence


Project Name: Picovoice/porcupine
Commit Name: c2cf686f1f8e8a7f81b89010b60911648a0b77b1
Time: 2021-02-26
Author: 42750891+mrrostam@users.noreply.github.com
File Name: binding/python/util.py
Class Name:
Method Name: _pv_linux_machine


Project Name: developmentseed/label-maker
Commit Name: f4d4d575203f952dd003a6b2398cd01e02669fc1
Time: 2018-02-25
Author: drew@developmentseed.org
File Name: label_maker/images.py
Class Name:
Method Name: download_images


Project Name: undertheseanlp/underthesea
Commit Name: e8852f5ea7b3b5d222f0d6140f9375bd3826d2e4
Time: 2017-05-08
Author: brother.rain.1024@gmail.com
File Name: underthesea/word_sent/model.py
Class Name: CRFModel
Method Name: predict