cac1a6393166806e3bf7dd1ca85986a2b45ba576,solutions/set_expansion/prepare_data.py,,,#,29

Before Change


                        spanWritten = False
        marked_corpus_file.write("\n")
        if i % 1000 == 0:
            logger.info(str(i) + " of " + str(num_lines) + " lines")

    corpus_file.close()
    marked_corpus_file.flush()
    marked_corpus_file.close()

After Change


                        spanWritten = False
        marked_corpus_file.write("\n")
        if i % 500 == 0:
            logger.info("%i of %i lines", i, num_lines)

    corpus_file.close()
    marked_corpus_file.flush()
    marked_corpus_file.close()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: NervanaSystems/nlp-architect
Commit Name: cac1a6393166806e3bf7dd1ca85986a2b45ba576
Time: 2018-07-03
Author: jonathan.mamou@intel.com
File Name: solutions/set_expansion/prepare_data.py
Class Name:
Method Name:


Project Name: allenai/allennlp
Commit Name: 8c2c5903e7f1bbd4bb8391393fec698d0e119dfe
Time: 2020-02-17
Author: sacastro@umich.edu
File Name: allennlp/data/batch.py
Class Name: Batch
Method Name: as_tensor_dict


Project Name: deepmipt/DeepPavlov
Commit Name: 5390c650dadd1e86b6c43543ac0ed384e8ebfc4d
Time: 2018-05-15
Author: yoptar@gmail.com
File Name: deeppavlov/core/models/keras_model.py
Class Name: KerasModel
Method Name: save