alphaear-sentiment
/install alphaear-sentiment
AlphaEar Sentiment Skill
Overview
This skill provides sentiment analysis capabilities tailored for financial texts, supporting both FinBERT (local model) and LLM-based analysis modes.
Capabilities
Capabilities
1. Analyze Sentiment (FinBERT / Local)
Use scripts/sentiment_tools.py for high-speed, local sentiment analysis using FinBERT.
Key Methods:
analyze_sentiment(text): Get sentiment score and label using localized FinBERT model.- Returns:
{'score': float, 'label': str, 'reason': str}. - Score Range: -1.0 (Negative) to 1.0 (Positive).
- Returns:
batch_update_news_sentiment(source, limit): Batch process unanalyzed news in the database (FinBERT only).
2. Analyze Sentiment (LLM / Agentic)
For higher accuracy or reasoning capabilities, YOU (the Agent) should perform the analysis using the Prompt below, calling the LLM directly, and then update the database if necessary.
Sentiment Analysis Prompt
Use this prompt to analyze financial texts if the local tool is insufficient or if reasoning is required.
请分析以下金融/新闻文本的情绪极性。
返回严格的 JSON 格式:
{"score": \x3Cfloat: -1.0到1.0>, "label": "\x3Cpositive/negative/neutral>", "reason": "\x3C简短理由>"}
文本: {text}
Scoring Guide:
- Positive (0.1 to 1.0): Optimistic news, profit growth, policy support, etc.
- Negative (-1.0 to -0.1): Losses, sanctions, price drops, pessimism.
- Neutral (-0.1 to 0.1): Factual reporting, sideways movement, ambiguous impact.
Helper Methods
update_single_news_sentiment(id, score, reason): Use this to save your manual analysis to the database.
Dependencies
torch(for FinBERT)transformers(for FinBERT)sqlite3(built-in)
Ensure DatabaseManager is initialized correctly.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install alphaear-sentiment - 安装完成后,直接呼叫该 Skill 的名称或使用
/alphaear-sentiment触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
alphaear-sentiment 是什么?
Analyze finance text sentiment using FinBERT or LLM. Use when the user needs to determine the sentiment (positive/negative/neutral) and score of financial te... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 112 次。
如何安装 alphaear-sentiment?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install alphaear-sentiment」即可一键安装,无需额外配置。
alphaear-sentiment 是免费的吗?
是的,alphaear-sentiment 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
alphaear-sentiment 支持哪些平台?
alphaear-sentiment 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 alphaear-sentiment?
由 zhouzhonglu8-png(@zhouzhonglu8-png)开发并维护,当前版本 v1.0.0。