ed19e1248722d30cf603711d114e6de62f24fc40,nalaf/features/relations/__init__.py,TokenFeatureGenerator,token_features,#TokenFeatureGenerator#Any#Any#Any#Any#Any#,92

Before Change


        self.add_to_feature_set(feature_set, is_training_mode, edge, feature_name_1)
        feature_name_2 = "74_"+prefix+"pos_"+token.features["pos"]+"_[0]"
        self.add_to_feature_set(feature_set, is_training_mode, edge, feature_name_2)
        feature_name_3 = "75_"+prefix+"txt_"+token.masked_text(edge.part)+"_[0]"
        self.add_to_feature_set(feature_set, is_training_mode, edge, feature_name_3)
        feature_name_4 = "76_"+prefix+"stem_"+self.stemmer.stem(token.masked_text(edge.part))+"_[0]"
        self.add_to_feature_set(feature_set, is_training_mode, edge, feature_name_4)

After Change


        feature_name_2 = self.gen_prefix_feat_name("prefix_pos", addendum, token.features["pos"])
        self.add_to_feature_set(feature_set, is_training_mode, edge, feature_name_2)

        feature_name_3 = self.gen_prefix_feat_name("prefix_masked_txt", addendum, token.masked_text(edge.part))
        self.add_to_feature_set(feature_set, is_training_mode, edge, feature_name_3)

        feature_name_4 = self.gen_prefix_feat_name("prefix_stem", addendum, self.stemmer.stem(token.masked_text(edge.part)))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: Rostlab/nalaf
Commit Name: ed19e1248722d30cf603711d114e6de62f24fc40
Time: 2016-10-28
Author: i@juanmi.rocks
File Name: nalaf/features/relations/__init__.py
Class Name: TokenFeatureGenerator
Method Name: token_features


Project Name: Rostlab/nalaf
Commit Name: 66330177f95beeb31c90884731112333a33b2862
Time: 2016-10-28
Author: i@juanmi.rocks
File Name: nalaf/features/relations/path.py
Class Name: PathFeatureGenerator
Method Name: path_edge_features


Project Name: Rostlab/nalaf
Commit Name: f3965fe659bf2158983ada87d6859c3c256908ad
Time: 2016-10-28
Author: i@juanmi.rocks
File Name: nalaf/features/relations/path.py
Class Name: PathFeatureGenerator
Method Name: path_dependency_features


Project Name: Rostlab/nalaf
Commit Name: c5b2c76f2193e98109e4b61d6cb4ff64ddbfce8c
Time: 2016-10-28
Author: i@juanmi.rocks
File Name: nalaf/features/relations/context.py
Class Name: IntermediateTokensFeatureGenerator
Method Name: generate