efe43cd5b10ea243f41d375d7fb07f445c864dad,nalaf/features/relations/sentence.py,StemmedBagOfWordsFeatureGenerator,generate,#StemmedBagOfWordsFeatureGenerator#,78

Before Change


            if is_training_mode:
                for token in sentence:
                    if self.stemmer.stem(token.word) not in self.stop_words and not token.features["is_punct"]:
                        feature_name = "4_bow_stem_" + self.stemmer.stem(token.word) + "_[0]"
                        self.add_to_feature_set(feature_set, is_training_mode, edge, feature_name)

After Change


            if is_training_mode:
                for token in sentence:
                    if self.stemmer.stem(token.word) not in self.stop_words and not token.features["is_punct"]:
                        feature_name = self.gen_prefix_feat_name("prefix_bow_stem", self.stemmer.stem(token.word))
                        self.add_to_feature_set(feature_set, is_training_mode, edge, feature_name)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: Rostlab/nalaf
Commit Name: efe43cd5b10ea243f41d375d7fb07f445c864dad
Time: 2016-10-27
Author: i@juanmi.rocks
File Name: nalaf/features/relations/sentence.py
Class Name: StemmedBagOfWordsFeatureGenerator
Method Name: generate


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


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_constituents


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