Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
LeIA (Léxico para Inferência Adaptada) é um fork do léxico e ferramenta para análise de sentimentos VADER (Valence Aware Dictionary and sEntiment Reasoner) adaptado para textos em português.
LeIA (Léxico para Inferência Adaptada) é um fork do léxico e ferramenta para análise de sentimentos VADER (Valence Aware Dictionary and sEntiment Reasoner) adaptado para textos em português, com suporte para emojis e foco na análise de sentimentos de textos expressos em mídias sociais - mas funcional para textos de outros domínios.
Modo de uso A biblioteca preserva a API do VADER, e o texto de entrada não precisa ser pré-processado:
from LeIA import SentimentIntensityAnalyzer s = SentimentIntensityAnalyzer() # Análise de texto simples s.polarity_scores('Eu estou feliz') #{'neg': 0.0, 'neu': 0.328, 'pos': 0.672, 'compound': 0.6249} # Análise de texto com emoji :) s.polarity_scores('Eu estou feliz :)') #{'neg': 0.0, 'neu': 0.22, 'pos': 0.78, 'compound': 0.7964} # Análise de texto com negação s.polarity_scores('Eu não estou feliz') #{'neg': 0.265, 'neu': 0.241, 'pos': 0.494, 'compound': 0.4404}
A saída da análise de sentimentos é um dicionário com os seguintes campos:
pos
: porcentagem positiva do textoneg
: porcentagem negativa do textoneu
: porcentagem neutra do textocompound
: valor de sentimento geral normalizado, variando de -1 (extremamente negativo) a +1 (extremamente positivo)O valor compound
pode ser utilizado para descrever o sentimento predominante no texto, por meio dos limites de valores:
compound >= 0.05
compound <= -0.05
(compound > -0.05) and (compound < 0.05)
FAQs
LeIA (Léxico para Inferência Adaptada) é um fork do léxico e ferramenta para análise de sentimentos VADER (Valence Aware Dictionary and sEntiment Reasoner) adaptado para textos em português.
We found that leia-br 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.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.