f3965fe659bf2158983ada87d6859c3c256908ad,nalaf/features/relations/path.py,PathFeatureGenerator,path_dependency_features,#PathFeatureGenerator#,120

Before Change


        for i in range(1, len(path)-1):
            token = path[i]
            feature_name_1 = self.gen_prefix_feat_name("prefix_50_internal_pos_" + token.features["pos"])
            feature_name_2 = self.gen_prefix_feat_name("prefix_51_internal_masked_txt_" + token.masked_text(edge.part))
            feature_name_3 = self.gen_prefix_feat_name("prefix_52_internal_txt_" + token.word)
            feature_name_4 = self.gen_prefix_feat_name("prefix_53_internal_stem_" + self.stemmer.stem(token.word))
            self.add_to_feature_set(feature_set, is_training_mode, edge, feature_name_1)

After Change


        for i in range(1, len(path)-1):
            token = path[i]
            feature_name_1 = self.gen_prefix_feat_name("prefix_50_internal_pos", token.features["pos"])
            feature_name_2 = self.gen_prefix_feat_name("prefix_51_internal_masked_txt", token.masked_text(edge.part))
            feature_name_3 = self.gen_prefix_feat_name("prefix_52_internal_txt", token.word)
            feature_name_4 = self.gen_prefix_feat_name("prefix_53_internal_stem", self.stemmer.stem(token.word))
            self.add_to_feature_set(feature_set, is_training_mode, edge, feature_name_1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


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: 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: c5b2c76f2193e98109e4b61d6cb4ff64ddbfce8c
Time: 2016-10-28
Author: i@juanmi.rocks
File Name: nalaf/features/relations/context.py
Class Name: IntermediateTokensFeatureGenerator
Method Name: generate