79d149dd39dc7e7d22c623c0a4a4d3ab99e61c76,conceptnet5/vectors/transforms.py,,choose_small_vocabulary,#Any#,153
Before Change
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
- contain more than one word
- 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: 3
Non-data size: 7
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: pyinstaller/pyinstaller
Commit Name: d437018f0fca2b15bbdd5b380c1654d354ae5672
Time: 2012-09-13
Author: mzibr.public@gmail.com
File Name: PyInstaller/hooks/shared_PIL_Image.py
Class Name:
Method Name: hook
Project Name: mynlp/ccg2lambda
Commit Name: 66a06524eba0b22d14204baeb2ca6d4c9db7d1d0
Time: 2017-05-12
Author: pascual@nii.ac.jp
File Name: scripts/semantic_types.py
Class Name:
Method Name: convert_coq_to_nltk_type