本文へ移動
cccskills
無料GitHub で公開

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 text markets.

インストール方法を見る

含まれるファイル(8)

  • SKILL.md2.0 KB
  • scripts/__init__.py0 B
  • scripts/database_manager.py21.3 KB
  • scripts/llm/capability.py2.8 KB
  • scripts/llm/factory.py3.6 KB
  • scripts/llm/router.py2.8 KB
  • scripts/sentiment_tools.py8.3 KB
  • tests/test_sentiment.py743 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Fetch the latest financial signals and transmission-chain analyses from DeepEar Lite. Use when the user needs immediate insights into financial market trends, stock performance factors, and reasoning from the DeepEar Lite dashboard.

日本語の概要は準備中です。原文の説明を表示しています。

RKiding/Awesome-finance-skills3,0702026年3月29日 更新

Create visualize finance logic diagrams (e.g., Draw.io XML) to explain complex finance transmission chains or finance logic flows.

日本語の概要は準備中です。原文の説明を表示しています。

RKiding/Awesome-finance-skills3,0702026年3月29日 更新

Fetch hot finance news, unified trends, and prediction financial market data. Use when the user needs real-time financial news, trend reports from multiple finance sources (Weibo, Zhihu, WallstreetCN, etc.), or Polymarket finance market prediction data.

日本語の概要は準備中です。原文の説明を表示しています。

RKiding/Awesome-finance-skills3,0702026年3月29日 更新

Market prediction skill using Kronos. Use when user needs finance market time-series forecasting or news-aware finance market adjustments.

日本語の概要は準備中です。原文の説明を表示しています。

RKiding/Awesome-finance-skills3,0702026年3月29日 更新

Plan, write, and edit professional financial reports; generate finance chart configurations. Use when condensing finance analysis into a structured output.

日本語の概要は準備中です。原文の説明を表示しています。

RKiding/Awesome-finance-skills3,0702026年3月29日 更新

Perform finance web searches and local context searches. Use when the user needs general finance info from the web (Jina/DDG/Baidu) or needs to retrieve finance information from a local document store (RAG).

日本語の概要は準備中です。原文の説明を表示しています。

RKiding/Awesome-finance-skills3,0702026年3月29日 更新

RKiding のスキルをすべて見る

このスキルの問題を報告する