42fcf4d02cf96176bada9f84a1c52371615f2cb5,features/content_features.py,,get_word_feats,#Any#,189
Before Change
def get_word_feats(span):
attrib = "words"
for ngram in tokens_to_ngrams(span.get_attrib_tokens(attrib), n_min=1, n_max=2):
yield "CONTAINS_%s_[%s]" % (attrib.upper(), ngram)
for ngram in get_left_ngrams(span,
window=settings.featurization.content.word_feature.window,
n_max=2, attrib=attrib):
yield "LEFT_%s_[%s]" % (attrib.upper(), ngram)
After Change
window=settings.featurization.content.word_feature.window,
n_max=2, attrib=attrib):
feature = "RIGHT_%s_[%s]" % (attrib.upper(), ngram)
unary_word_feats.add(feature)
for f in unary_word_feats[span.stable_id]:
yield f
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: HazyResearch/fonduer
Commit Name: 42fcf4d02cf96176bada9f84a1c52371615f2cb5
Time: 2017-04-18
Author: senwu@stanford.edu
File Name: features/content_features.py
Class Name:
Method Name: get_word_feats
Project Name: explosion/spaCy
Commit Name: 01858e9b5972a8c1dec86f88eef3f17fea63cdc6
Time: 2017-09-20
Author: honnibal+gh@gmail.com
File Name: examples/multi_word_matches.py
Class Name:
Method Name: get_matches
Project Name: pantsbuild/pants
Commit Name: 3f490de2c61c51cdf7cb78c8217842d2a9232758
Time: 2017-04-04
Author: stuhood@twitter.com
File Name: src/python/pants/engine/legacy/change_calculator.py
Class Name: EngineChangeCalculator
Method Name: iter_changed_target_addresses