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()
at.ternary_analysis
Get the type of all text, here -1:negetive, 0:neutral, 1:positive
at.ternary_analysis()
- 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
Metadata
Release files for autosentiment 1.2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| autosentiment-1.2.6.tar.gz | 2.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| autosentiment-1.2.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.1 kB
Release files / autosentiment-1.2.6.tar.gz
| Download URL | autosentiment-1.2.6.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
377efc6c8804cc1bd096a703b74d3cfef6742699eb6a620d53c200d4fe31a3e8
|
|
BLAKE2b-256 checksum How to use checksums |
44c09d4a9d0349712befaeea33b5a22e63dc24b14d44e042c01373a8cf9c7e88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/2.7.17
|
Release files / autosentiment-1.2.6-py3-none-any.whl
| Download URL | autosentiment-1.2.6-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cd6961f1d0f0ba64848470c6d80eb7eef443aef2e51beae2488740f53436dea1
|
|
BLAKE2b-256 checksum How to use checksums |
04b3d51530c67515053afa8218067186ed997575305de8af93c93cf99ec5f77e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/2.7.17
|
Security for autosentiment 1.2.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.