6b3c362cc85fc4fbd4a972954a39b39404950b14,conceptnet5/vectors/evaluation/wordsim.py,,evaluate_semeval_crosslingual_global,#,370

Before Change


    scores = []
    for pair in ["en-de", "en-es", "en-fa", "en-it", "de-es", "de-fa", "de-it", "es-fa", "es-it",
                 "it-fa"]:
        lang1, lang2 = pair.split("-")
        score = evaluate_semeval_crosslingual(vectors, lang1, lang2)
        scores.append(score)

    top_scores = sorted(scores, key=lambda x: x["acc"] if not np.isnan(x["acc"]) else 0)[-6:]

After Change


    scores are supplied, the global score is NaN.
    
    scores = []
    languages = ["en", "de", "es", "it", "fa"]
    for lang1, lang2 in combinations(languages, 2):
        score = evaluate_semeval_crosslingual(vectors, lang1, lang2)
        scores.append(score)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: commonsense/conceptnet5
Commit Name: 6b3c362cc85fc4fbd4a972954a39b39404950b14
Time: 2017-03-07
Author: joanna.teresa.duda@gmail.com
File Name: conceptnet5/vectors/evaluation/wordsim.py
Class Name:
Method Name: evaluate_semeval_crosslingual_global


Project Name: nipy/dipy
Commit Name: 0d5da6d36d064ec89ef07d546b0122614b343c99
Time: 2020-07-21
Author: svabhishek29@gmail.com
File Name: dipy/io/vtk.py
Class Name:
Method Name: save_vtk_streamlines


Project Name: kubeflow/kubeflow
Commit Name: 99c94d88c96c2b0a45bbbef4c8a126fa018ce513
Time: 2018-10-11
Author: 37601826+kunmingg@users.noreply.github.com
File Name: bootstrap/build.py
Class Name:
Method Name: main