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:
// Check if a term comes from ConceptNet
results = finder.lookup(term)
if results:
small_vocabulary.append(term)
return small_vocabulary
def make_big_frame(frame, lang):
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
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 10
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: matplotlib/matplotlib
Commit Name: 4fcfd4a9ba15b4cb4077dddacb1e184bba14747b
Time: 2018-12-09
Author: anntzer.lee@gmail.com
File Name: examples/text_labels_and_annotations/arrow_demo.py
Class Name:
Method Name: make_arrow_plot
Project Name: Rostlab/nalaf
Commit Name: 234698b07ab372738686e3d3de6ab8f08b1a7057
Time: 2015-10-06
Author: carsten.uhlig@gmail.com
File Name: nala/learning/taggers.py
Class Name: RelationshipExtractionGeneMutation
Method Name: tag
Project Name: PIQuIL/QuCumber
Commit Name: 6a9b9a282e8698f7a8c5d66c0e42851bd0c53d2b
Time: 2019-12-23
Author: emerali@users.noreply.github.com
File Name: tests/grads_utils.py
Class Name: ComplexGradsUtils
Method Name: transform_bases