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