Module CommentClassifier

Expand source code
from textblob import TextBlob

def Getpolarity_Score(comment_input):   # get the polarity score from textblob library using NLP
    analysis = TextBlob(comment_input).sentiment
    polarity_score=analysis.polarity
    return polarity_score

Functions

def Getpolarity_Score(comment_input)
Expand source code
def Getpolarity_Score(comment_input):   # get the polarity score from textblob library using NLP
    analysis = TextBlob(comment_input).sentiment
    polarity_score=analysis.polarity
    return polarity_score