def __init__(self, db, **kwargs):
     BaseFeatureGenerator.__init__(self, db, **kwargs)
     self._features = self._config_parser.eval(self.__class__.__name__, "feature_list")
     self._targeted_fields = self._config_parser.eval(self.__class__.__name__, "targeted_fields")
     self._aggregated_functions = self._config_parser.eval(self.__class__.__name__, "aggregated_functions")
     nltk.download('vader_lexicon')
     self._sentence_analyser = SentimentIntensityAnalyzer()
 def __init__(self, db, **kwargs):
     BaseFeatureGenerator.__init__(self, db, **kwargs)
     self._retweet_count = db.get_retweet_count()
     self._retweets = pd.DataFrame(db.get_retweets().items(),
                                   columns=['post_id', 'content'])
     self._targeted_fields = self._config_parser.eval(
         self.__class__.__name__, "targeted_fields")
     self._author_dict = {}
    def __init__(self, db, **kwargs):
        BaseFeatureGenerator.__init__(self, db, **kwargs)

        self._measure_names = self._config_parser.eval(self.__class__.__name__, "measure_names")
        self._aggregation_functions_names = self._config_parser.eval(self.__class__.__name__, "aggregation_functions")
        self._graph_types = self._config_parser.eval(self.__class__.__name__, "graph_types")
        self._property_node_field_names = self._config_parser.eval(self.__class__.__name__, "property_node_field_names")
        self._anchor_authors_creator = AnchorAuthorsCreator(self._db)
 def __init__(self, db, **kwargs):
     BaseFeatureGenerator.__init__(self, db, **kwargs)
     self._targeted_fields = self._config_parser.eval(
         self.__class__.__name__, "targeted_fields")
     self._load_stop_words()
     self._words = words.words()
     self._author_id_texts_dict = {}
     self._features = self._config_parser.eval(self.__class__.__name__,
                                               "feature_list")
     self._authors = []
     self._multi_field_features = []
     self._authors = self._db.get_author_guid_to_author_dict()
Exemple #5
0
 def __init__(self, db, **kwargs):
     BaseFeatureGenerator.__init__(self, db, **kwargs)
     nltk.download('words')
     nltk.download('punkt')
     nltk.download('averaged_perceptron_tagger')
     nltk.download('universal_tagset')
     self._targeted_fields = self._config_parser.eval(
         self.__class__.__name__, "targeted_fields")
     self._load_stop_words()
     self._words = words.words()
     self._author_id_texts_dict = {}
     self._features = self._config_parser.eval(self.__class__.__name__,
                                               "feature_list")
     self._authors = []
     self._multi_field_features = []
     self._authors = self._db.get_author_guid_to_author_dict()
Exemple #6
0
 def __init__(self, db, **kwargs):
     BaseFeatureGenerator.__init__(self, db, **kwargs)
     self._retweet_count = db.get_retweet_count()
     self._retweets = pd.DataFrame(db.get_retweets().items(),
                                   columns=['post_id', 'content'])
Exemple #7
0
 def __init__(self, db, **kwargs):
     BaseFeatureGenerator.__init__(self, db, **kwargs)
     self._measure_names = self._config_parser.eval(self.__class__.__name__,
                                                    "measure_names")
     self._aggregation_functions = self._config_parser.eval(
         self.__class__.__name__, "aggregation_functions")
 def __init__(self, db, **kwargs):
     BaseFeatureGenerator.__init__(self, db, **kwargs)
     self._sentence_analyser = SentimentIntensityAnalyzer()