返回 Skill 市集

Opportunity Capture

alphaear-sentiment

AlphaEar Sentiment provides domain-specific sentiment analysis for financial texts, offering both a high-speed local FinBERT pipeline and an agent-driven LLM analysis mode for deeper reasoning. Key features include analyze_sentiment(text) which returns {score, label, reason} with a -1.0 to 1.

45 天前更新1 分鐘內設定完

總覽

AlphaEar Sentiment provides domain-specific sentiment analysis for financial texts, offering both a high-speed local FinBERT pipeline and an agent-driven LLM analysis mode for deeper reasoning.

AlphaEar Sentiment provides domain-specific sentiment analysis for financial texts, offering both a high-speed local FinBERT pipeline and an agent-driven LLM analysis mode for deeper reasoning. Key features include analyze_sentiment(text) which returns {score, label, reason} with a -1.0 to 1.0 score range, batch_update_news_sentiment(source, limit) for bulk processing of unanalyzed items, and update_single_news_sentiment(id, score, reason) to persist manual LLM judgments. Use FinBERT for scalable, low-latency scoring across news feeds and databases; use the LLM prompt workflow when nuance, contextual reasoning, or ambiguous cases require human-like interpretation. Typical use cases are news monitoring, trading signal generation, research, and compliance review. Core advantages: finance-tuned models, integrated database update helpers, and a clear scoring guide; dependencies include torch, transformers, and sqlite3.

Skill.md

這個 Skill 如何運作

AlphaEar Sentiment provides domain-specific sentiment analysis for financial texts, offering both a high-speed local FinBERT pipeline and an agent-driven LLM analysis mode for deeper reasoning. Key features include analyze_sentiment(text) which returns {score, label, reason} with a -1.0 to 1.

SKILL.mdALPHIO / 已驗證

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).
  • 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": <float: -1.0到1.0>, "label": "<positive/negative/neutral>", "reason": "<简短理由>"}

文本: {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.

最適合用於

何時使用

AlphaEar Sentiment provides domain-specific sentiment analysis for financial texts, offering both a high-speed local FinBERT pipeline and an agent-driven LLM analysis mode for deeper reasoning. Key features include analyze_sentiment(text) which returns {score, label, reason} with a -1.0 to 1.

01 · 會前準備

準備決策簡報

在投資委員會開會前,把零散證據整理成結構化的論據。

02 · 團隊協作

統一交接標準

讓分析師、投資組合經理與 Agent 產出一致的研究結果。

03 · 即時更新

更新投資邏輯

出現新催化劑、KPI 發布或財報結果後,更新情境假設。

社群回饋

越用越好用。

隨著 Skill 被使用與評審,回饋將顯示在這裡。

提交回饋

探索更多

相關 Skills

查看全部
免費開始