- 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