Synaptic SkillsSynapticSkills
MarketplaceSkill GraphCriar SkillMCP ServerPlataformaEnterprise
v0.1.0-beta
Voltar ao Marketplace
AI / MLMédioAuto-Sync

Sentiment Analyzer

porTHIAGONOMA·THIAGONOMA· v1.3.0 · atualizado em 2026-04-12T22:48:39.605Z
84
Score

Classifica sentimento de textos com modelos transformer fine-tuned (BERT, RoBERTa). Suporta análise multilingual, aspect-based sentiment, detecção de emoções e análise de reviews em português e inglês.

nlpsentiment-analysisberttransformershuggingfacetext-classificationemotions
Linguagens
PythonTypeScript
1.1KStars
98Forks
15.6KUsos
Fork

Documento do Skill

SKILL.mdsentiment-analyzer/workflow
Passo-a-passo detalhado do skill, referenciando as fases cognitivas:
1
SENSE — Identificar requisitos
```python
texts = [
"Produto excelente, chegou rápido e embalagem perfeita",
"Muito decepcionante, não recomendo para ninguém",
"Produto ok, nada especial",
]
# Identificar idioma predominante e granularidade necessária
```
2
CONTEXTUALIZE — Selecionar modelo
| Caso de Uso | Modelo Recomendado |
|------------|-------------------|
| PT-BR reviews | HeyLucasLeao/bert-base-portuguese-cased-finetuned-sentiment |
| Multilingual | cardiffnlp/twitter-xlm-roberta-base-sentiment |
| Fine-grained (1-5) | nlptown/bert-base-multilingual-uncased-sentiment |
| Zero-shot | GPT-4o-mini com structured output |
3
RECOMMEND — Pipeline Hugging Face
```python
from transformers import pipeline
import torch
# Carregar modelo (auto-detecta GPU se disponível)
sentiment = pipeline(
"text-classification",
model="cardiffnlp/twitter-xlm-roberta-base-sentiment",
device=0 if torch.cuda.is_available() else -1,
truncation=True,
max_length=512,
)
def analyze_batch(texts: list[str], batch_size: int = 32):
results = sentiment(texts, batch_size=batch_size)
return [
{
"text": text[:100] + "..." if len(text) > 100 else text,
"label": r["label"].lower(), # positive/negative/neutral
"confidence": round(r["score"], 4),
}
for text, r in zip(texts, results)
]
results = analyze_batch(texts)
for r in results:
print(f"{r['label']:8} ({r['confidence']:.0%}) — {r['text'][:60]}")
```
4
RECOMMEND — API endpoint (FastAPI)
```python
from fastapi import FastAPI
from pydantic import BaseModel
app = FastAPI()
class SentimentRequest(BaseModel):
text: str
@app.post("/analyze")
async def analyze(req: SentimentRequest):
result = sentiment(req.text[:512])[0]
return {"label": result["label"].lower(), "confidence": result["score"]}
```
5
EVALUATE — Validar com casos difíceis
```python
edge_cases = [
"Não recomendo", # negação
"Ótimo, veio com defeito", # ironia
"...", # texto mínimo
"A" * 1000, # texto muito longo
]
for text in edge_cases:
result = sentiment(text[:512])[0]
print(f"'{text[:40]}' → {result['label']} ({result['score']:.0%})")
```
6
REFLECT — Documentar e monitorar
Calcular precision/recall/F1 com dataset rotulado do domínio
Configurar monitoramento de data drift: distribuição de sentimentos no tempo
Reportar telemetria via mcp-skillschain

Telemetria de Agentes

Execuções
0
total
Taxa de Sucesso
0%
últimos 30d
Latência Média
0.0s
p50
Alucinação
0.0%
detecção
Tokens Entrada
0
avg 0/exec
Tokens Saída
0
avg 0/exec

Uso por Plataforma

Skills Relacionados

Depende deEmbedding Generator
24%
Hebbian Synapse
Composite0.240
w = 0.3·α + 0.5·β + 0.2·γ
90
Compõe comToken Counter
21%
Hebbian Synapse
Composite0.210
w = 0.3·α + 0.5·β + 0.2·γ
84
Similar aPrompt Optimizer
15%
Hebbian Synapse
Composite0.150
w = 0.3·α + 0.5·β + 0.2·γ
60
Co-executedToken Counter
47%
Hebbian Synapse
Composite0.471
w = 0.3·α + 0.5·β + 0.2·γ
84
Co-executed ←Embedding Generator
41%
Hebbian Synapse
Composite0.406
w = 0.3·α + 0.5·β + 0.2·γ
90
Co-executed ←Data Visualization
40%
Hebbian Synapse
Composite0.400
w = 0.3·α + 0.5·β + 0.2·γ
80
Co-executed ←Pandas Data Analyzer
40%
Hebbian Synapse
Composite0.400
w = 0.3·α + 0.5·β + 0.2·γ
87
Co-executed ←ML Model Trainer
40%
Hebbian Synapse
Composite0.400
w = 0.3·α + 0.5·β + 0.2·γ
85
Co-executed ←ETL Pipeline Builder
40%
Hebbian Synapse
Composite0.400
w = 0.3·α + 0.5·β + 0.2·γ
86

Árvore do Skill

Sentiment Analyzer
sentiment-analyzer
Fases Cognitivas6
1.SENSE: Percepção
2.CONTEXTUALIZE: Contextualização
3.HYPOTHESIZE: Hipótese
4.RECOMMEND: Recomendação
5.EVALUATE: Avaliação
6.REFLECT: Reflexão
Triggers15
analyze sentimentanalisar sentimentosentiment classificationtext sentimentclassify reviewsclassificar avaliaçõesopinion miningemotion detectionpositive negative neutralhuggingface classifierbert sentimentaspect based sentimentproduto feedback analysiscustomer sentimentanálise de sentimento em português

Avaliar este Skill

Score Breakdown

⭐Avaliação Humana0%
🤖Sucesso de Agentes0%
🕐Atualidade100%
🔗Saúde de Dependências100%
🕸️Centralidade no Grafo0%
🛡️Segurança50%
CompositeScore = α·Humano + β·Agente + γ·Recência + δ·Deps + ε·Centralidade + ζ·Segurança

Instalação

$ synaptic mcp download sentiment-analyzer
$ synaptic skills detail sentiment-analyzer
$ synaptic skills live sentiment-analyzer

Links

GitHub Repository