Exemple #1
0
 def get_feature_extractor(self):
     return FeatureExtractor(window_size=6,
                             spacy_features=[
                                 'pos_', 'shape_', 'prefix_', 'suffix_',
                                 'like_num', 'text'
                             ])
Exemple #2
0
 def get_feature_extractor(self):
     extractor = FeatureExtractor(
         window_size=3,
         spacy_features=['pos_', 'shape_', 'prefix_', 'suffix_', 'text'])
     return extractor
Exemple #3
0
 def get_feature_extractor(self):
     return FeatureExtractor(
         window_size=input_json['window_size'],
         spacy_features=input_json['spacy_features']
     )