An automatic sentiment analysis pakage
Project description
Automate sentiment analysis tool
Author : Sazin Reshed Samin
- Email : 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 :
Get the sentiment type(postive,negetive,neutral numbers)
at.number()
- sentiment percentage :
Get the percentage of sentiment type
at.percentage()
- An example usages
>>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 : sazinsamin50@gmail.com
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-1.1.2.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for autosentiment-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64b3d3879c330b4273dc89faaec6743084c896e40b311a0a5603906329acf2f4 |
|
MD5 | 43d632b4acd809ff36a145eed4f558ae |
|
BLAKE2b-256 | 89d1d8558950b10b5d7c20b4432f5b195e408904031039a1e7dcb621af625d6e |