Verson 2 comming soon !!!!
To install copy the below line:
- Email : [email protected] Page: https://sazinsamin.github.io/autosentiment/
autosentiment is an open source library that generates sentiment type(positive,negetive,neutral) pie char,percentage,number and ternary value for pandas dataframe text portion.
For analysis the seintiment type in positive,negetive or neutral
pip install autosentiment
!pip install autosentiment
import autosentiment as at
Have to get dataframe('text columns') and give to command.
Like df['text]
at.pie()
Get the sentiment type(postive,negetive,neutral numbers)
at.number()
Get the percentage of sentiment type
at.percentage()
Get the type of all text, here -1:negetive, 0:neutral, 1:positive
at.ternary_analysis()
>>import autosentiment as at
>>import pandas as pd
>>df=pd.read_csv("/home/samin/anaconda3/dataset_2.csv")
>>percent=at.percentage(df['text'])
>>print(percent)
>>Positve : 33.31 %, Negetive 20.96 %, Neutral : 45.72 %
>>number=at.number(df['text'])
>>print(number)
>>{'positive ': 1087, 'negetive': 684, 'neutral': 1492}
>>ana=at.analysis_ternary(df['text'])
>>print(ana)
>>[-1, 1, 0.0, 0.0, 0.0, 0.0,.......,1]
>>at.pie(df['text'])
- For any bug, please notify in my email : [email protected]