6e3d997a337f63efe6a937d6157f9b0b36cb3cc6,snorkel/features.py,SpanFeaturizer,get_feats,#SpanFeaturizer#Any#,72

Before Change


    def get_feats(self, spans):
        TDL_feature_generator = compile_entity_feature_generator()
        for i,s in enumerate(spans):
            xmltree = corenlp_to_xmltree(get_as_dict(s.context))
            sidxs   = range(s.get_word_start(), s.get_word_end() + 1)

            // Add DDLIB entity features
            for f in get_ddlib_feats(s, sidxs):

After Change


    def get_feats(self, spans):
        TDL_feature_generator = compile_entity_feature_generator()
        for i,s in enumerate(spans):
            sent    = get_as_dict(s.context)
            xmltree = corenlp_to_xmltree(sent)
            sidxs   = range(s.get_word_start(), s.get_word_end() + 1)

            // Add DDLIB entity features
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: snorkel-team/snorkel
Commit Name: 6e3d997a337f63efe6a937d6157f9b0b36cb3cc6
Time: 2016-08-13
Author: ajratner@gmail.com
File Name: snorkel/features.py
Class Name: SpanFeaturizer
Method Name: get_feats


Project Name: snorkel-team/snorkel
Commit Name: ef3acc1adab3f405cf87e9d7e91e9106c594c3e1
Time: 2016-08-01
Author: ajratner@gmail.com
File Name: snorkel/features.py
Class Name: NgramFeaturizer
Method Name: _preprocess_candidates


Project Name: HazyResearch/fonduer
Commit Name: 489657cb0b638244181d9740d694f745a6ea3b94
Time: 2019-02-09
Author: lukehsiao@users.noreply.github.com
File Name: src/fonduer/features/feature_libs/content_features.py
Class Name:
Method Name: get_content_feats