c343409098b4f4b8396119d9f26e040e479a0e2b,labs/08/speech_recognition_eval.py,,,#,18

Before Change


parser = argparse.ArgumentParser()
parser.add_argument("system", type=str, help="Path to system output.")
parser.add_argument("gold", type=str, help="Path to gold data.")
args = parser.parse_args()

with open(args.system, "r", encoding="utf-8") as system_file:
    system = [line.rstrip("\n") for line in system_file]

After Change



if __name__ == "__main__":
    // Parse arguments
    parser = argparse.ArgumentParser()
    parser.add_argument("predictions", type=str, help="Path to predicted output.")
    parser.add_argument("dataset", type=str, help="Which dataset to evaluate ("dev", "test").")
    args = parser.parse_args([] if "__file__" not in globals() else None)

    gold = getattr(TimitMFCC(), args.dataset).data["letters"]

    with open(args.predictions, "r", encoding="utf-8") as predictions_file:
        predictions = [line.rstrip("\n") for line in predictions_file]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 16

Instances


Project Name: ufal/npfl114
Commit Name: c343409098b4f4b8396119d9f26e040e479a0e2b
Time: 2020-04-20
Author: milan@strakovi.com
File Name: labs/08/speech_recognition_eval.py
Class Name:
Method Name:


Project Name: ufal/npfl114
Commit Name: 5155199f5df2129d10bc52ceffce5d7720538806
Time: 2020-04-29
Author: milan@strakovi.com
File Name: labs/09/lemmatizer_attn.py
Class Name:
Method Name:


Project Name: ufal/npfl114
Commit Name: c343409098b4f4b8396119d9f26e040e479a0e2b
Time: 2020-04-20
Author: milan@strakovi.com
File Name: labs/08/speech_recognition_eval.py
Class Name:
Method Name:


Project Name: ufal/npfl114
Commit Name: 5155199f5df2129d10bc52ceffce5d7720538806
Time: 2020-04-29
Author: milan@strakovi.com
File Name: labs/09/lemmatizer_noattn.py
Class Name:
Method Name: