Ejemplo n.º 1
0
def fill_dominance_score(review):
    """Fill ANEW dominance weighted score"""
    review['feature_dominance_score'] = anew_scoring.weighted_normalized_freq_score(
                                                                 re.findall("\w+", review['text']), 
                                                                 'dominance_mean')
Ejemplo n.º 2
0
def fill_dominance_score(review):
    """Fill ANEW dominance weighted score"""
    review[
        'feature_dominance_score'] = anew_scoring.weighted_normalized_freq_score(
            re.findall("\w+", review['text']), 'dominance_mean')
Ejemplo n.º 3
0
def fill_arousal_score(review):
    """Fill ANEW arousal weighted score"""
    review['feature_arousal_score'] = anew_scoring.weighted_normalized_freq_score(
                                                               re.findall("\w+", review['text']), 
                                                               'arousal_mean')
Ejemplo n.º 4
0
def fill_arousal_score(review):
    """Fill ANEW arousal weighted score"""
    review[
        'feature_arousal_score'] = anew_scoring.weighted_normalized_freq_score(
            re.findall("\w+", review['text']), 'arousal_mean')