Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

autosentiment

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autosentiment

An automatic sentiment analysis pakage

  • 1.2.6
  • PyPI
  • Socket score

Maintainers
1

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'])


pie chart

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc