79d149dd39dc7e7d22c623c0a4a4d3ab99e61c76,conceptnet5/vectors/transforms.py,,choose_small_vocabulary,#Any#,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: 6

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: tensorflow/transform
Commit Name: 98e2f714e54b761c0a1954ad50a26010c7ef50d9
Time: 2018-09-24
Author: tf-transform-dev@google.com
File Name: tensorflow_transform/beam/tft_unit.py
Class Name: TransformTestCase
Method Name: assertAnalyzeAndTransformResults


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