An automatic sentiment analysis pakage
Project description
##Automate sentiment analysis tool
- Author : Sazin Reshed Samin sazinsamin50@gmail.com
#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.
-
Usage For analysis the seintiment type in positive,negetive or neutral
-
Setup in normal environment and command window:
pip install autosentiment
- Setup in jupyter notebook:
!pip install autosentiment
- Import library :
import autosentiment as at
- The library is pandas dataframe dependent.
Have to get dataframe('text columns') and give to command.
Like df['text]
#Features
- sentiment type pie chart :
at.pie()
- sentiment type amount :
at.number()
- sentiment percentage :
at.percentage()
- An example usages
>>import autosentiment as at
>>import pandas as pd
>>df=pd.read_csv("dataset_2.csv")
>>number=at.number(df['text'])
>>print(number)
>>{'postive': 1087, 'negetive': 684, 'neutral': 1492}
>>percen=at.percentage(df['text'])
>>print(percen)
>>postive': 33.31, 'negetive': 20.96, 'neutral': 45.72}
>>analysis=at.analysis_ternary(df['text'])
>>analysis
>> [1,
0.0,
1,
1,
1,
-1,
1,
-1,
0.0,
...]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
autosentiment-0.4.4.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for autosentiment-0.4.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a67c7513f33d9b7d960d89ebe1554ee3bb272ec250153c1286b93e62fd65ee87 |
|
MD5 | 381165f07686c25728a2afbac89043d4 |
|
BLAKE2b-256 | b6a74b2bf78f4e2166c631f9e3ed4d87759de14d5d807223af10d3ca94332b0f |