Text Analyzer

Extract BoW, TF-IDF, FinBERT embeddings, and sentiment scores from financial text.

38|9|Updated Oct 30, 2025
One-click install
npx skills add https://github.com/IgorGanapolsky/trading --skill text-analyzer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Text Analyzer
Source: https://github.com/IgorGanapolsky/trading/tree/main/.claude/skills/text_analyzer
Command: npx skills add https://github.com/IgorGanapolsky/trading --skill text-analyzer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires src/ml/text_feature_engineering.py.

What problem does it solve?

This Skill extracts numerical features from financial text (news, earnings reports, social media) to feed ML-based trading decisions, enabling more informed decisions with less manual effort.

Core Features & Use Cases

  • BoW features: word frequency metrics for quick baseline signals.
  • TF-IDF features: keyword importance to capture meaningful terms.
  • Embeddings: FinBERT-based 768-dim vectors for semantic context.
  • Sentiment scoring: domain-specific score to gauge market mood.
  • Batch analysis: analyze multiple texts (headlines, articles, posts) to generate trading signals.

Quick Start

Run the Text Analyzer on a sample piece of financial text to produce a feature vector and sentiment signals, then feed it into your ML model.

Frequently Asked Questions about Text Analyzer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract features from financial text for trading models?

Text Analyzer processes financial text—headlines, articles, earnings reports, social media—into ML-ready features: bag-of-words, TF-IDF, FinBERT embeddings, and sentiment scores. Feed the output directly into your trading decision model.

Can I analyze multiple financial documents at once to generate trading signals?

Yes. Text Analyzer supports batch processing of multiple texts to generate BoW, TF-IDF, and FinBERT embeddings with bullish, bearish, and uncertainty signals in a single run.

What sentiment analysis approach does this use for financial text?

Text Analyzer applies domain-specific sentiment scoring tuned for financial context, using FinBERT embeddings to detect market mood and produce interpretable bullish/bearish/uncertainty classifications.

How do BoW and TF-IDF features differ for trading signal generation?

BoW captures raw word frequency for quick baseline signals; TF-IDF weights term importance to isolate meaningful keywords. Text Analyzer generates both to let you choose the feature richness your model needs.

Can I use FinBERT embeddings directly in machine learning models?

Yes. Text Analyzer outputs 768-dimensional FinBERT vectors that capture semantic context and integrate directly into downstream ML models for trading decisions.