79d149dd39dc7e7d22c623c0a4a4d3ab99e61c76,conceptnet5/vectors/transforms.py,,choose_small_vocabulary,#,153

Before Change


     - are not in ConceptNet
    
    small_vocabulary = []
    finder = AssertionFinder()

    for term in big_frame.index:
        // Make sure the term is not a phrase
        if term.count("_") < 1:

After Change


     - are not in ConceptNet
    
    DATA = environ.get("CONCEPTNET_BUILD_DATA", "data")
    concepts = set(line.strip() for line in open(path.join(DATA, "stats", "core_concepts.txt")))
    small_vocab = [term for term in big_frame.index if term.count("_") < 1 and term in concepts]
    return small_vocab
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: commonsense/conceptnet5
Commit Name: 79d149dd39dc7e7d22c623c0a4a4d3ab99e61c76
Time: 2017-06-15
Author: joanna.teresa.duda@gmail.com
File Name: conceptnet5/vectors/transforms.py
Class Name:
Method Name: choose_small_vocabulary


Project Name: scikit-multiflow/scikit-multiflow
Commit Name: 21d06b0d0cfd47e7b420ad9dac95fc6d634a083e
Time: 2020-05-17
Author: saulomastelini@gmail.com
File Name: tests/meta/test_regressor_chains.py
Class Name:
Method Name: test_regressor_chains


Project Name: codelucas/newspaper
Commit Name: 18ca7ac766bf4af403daab0530a2439edcea0088
Time: 2015-01-14
Author: lucasyangpersonal@gmail.com
File Name: tests/unit_tests.py
Class Name: ExhaustiveFullTextCase
Method Name: runTest