16442e7865371dc940e46d74288fa74b36ca3023,underthesea/corpus/revise_corpus.py,,revise_corpus_vlsp2013_wtk,#,12

Before Change


    except Exception as e:
        pass
    makedirs(dest_folder)
    copyfile(join(source_folder, "train.txt"), join(dest_folder, "train.txt"))
    copyfile(join(source_folder, "test.txt"), join(dest_folder, "test.txt"))


def revise_corpus(corpus_name):

After Change


    except Exception:
        pass
    makedirs(dest_folder)
    files = ["train.txt", "test.txt"]
    for file in files:
        revise_vlsp2013_wtk_dataset(join(source_folder, file), join(dest_folder, file))


def revise_corpus(corpus_name):
    if corpus_name not in SUPPORTED_CORPUS:
        print(f"Corpus {corpus_name} is not supported")
        sys.exit(1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: undertheseanlp/underthesea
Commit Name: 16442e7865371dc940e46d74288fa74b36ca3023
Time: 2020-11-02
Author: anhv.ict91@gmail.com
File Name: underthesea/corpus/revise_corpus.py
Class Name:
Method Name: revise_corpus_vlsp2013_wtk


Project Name: pantsbuild/pants
Commit Name: 7c3f95d1505944f54c998f27f144d4dcb8968477
Time: 2013-11-25
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/tasks/benchmark_run.py
Class Name: BenchmarkRun
Method Name: __init__


Project Name: pantsbuild/pants
Commit Name: 0ae83e5eea0c5df1423be7c34db26c203d5f51de
Time: 2013-11-07
Author: pl@foursquare.com
File Name: src/python/twitter/pants/tasks/benchmark_run.py
Class Name: BenchmarkRun
Method Name: __init__