Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
A simple python library that generates sentiment type(positive,negetive,neutral) pie chart, percentage,number and ternary value for pandas dataframe text portion.
The code is Python 2 and 3 compatible.
:: pip install sentianalyse
.. code:: bash
$wget https://github.com/garain/sentianalyse/archive/master.zip
$unzip master.zip
$rm master.zip
$cd sentianalyse-master
::
python setup.py install
:: Have to get dataframe('text columns') and give to command. Like df['text']
.. code:: python
import sentianalyse as sa
# Features
# - sentiment type pie chart :
sa.pie()
# sentiment type amount :
# - Get the sentiment type(postive,negetive,neutral numbers)
sa.number()
# sentiment percentage :
# - Get the percentage of sentiment type
sa.percentage()
# sa.ternary_analysis
# - Get the type of all text, here -1:negetive, 0:neutral, 1:positive
sa.ternary_analysis()
import pandas as pd
df=pd.read_csv("/home/samin/anaconda3/dataset_2.csv")
percent=at.percentage(df['text'])
print(percent)
number = sa.number(df['text'])
print(number)
analysis = sa.analysis_ternary(df['text'])
print(analysis)
#sa.pie(df['text'])
# Pass list of texts as input
df=pd.DataFrame(["I love you very much."],columns=['text'])
::
Positve : 33.31 %, Negetive 20.96 %, Neutral : 45.72 %
{'positive ': 1087, 'negetive': 684, 'neutral': 1492}
[-1, 1, 0.0, 0.0, 0.0, 0.0,.......,1]
FAQs
A small tool for sentiment analysis of texts.
We found that sentianalyse demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.