Skip to main content

A specialized sentiment analyzer for financial text, optimized for market jargon.

Project description

FinSense Analyzer: Financial Sentiment Tool

FinSense is a lightweight Python package specialized for analyzing sentiment in financial text. It uses a custom, finance-tuned lexicon to overcome the limitations of general-purpose sentiment tools when dealing with market jargon and financial concepts.

Installation

pip install finsense-analyzer
from finsense import FinSenseAnalyzer

# 1. Initialize the analyzer
analyzer = FinSenseAnalyzer()

# 2. Define test sentences
text_positive = "The stock rallied strongly today on excellent profits."
text_negative = "Q4 earnings missed estimates, causing large losses."
text_negation = "The team did not see major losses this quarter."

# 3. Analyze and print results
print("--- Analysis Results ---")
print(f"Positive Score: {analyzer.analyze_sentiment(text_positive)['polarity']:.4f}")
print(f"Negative Score: {analyzer.analyze_sentiment(text_negative)['polarity']:.4f}")
print(f"Negation Score: {analyzer.analyze_sentiment(text_negation)['polarity']:.4f}")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

finsense_analyzer-0.0.2.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

finsense_analyzer-0.0.2-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file finsense_analyzer-0.0.2.tar.gz.

File metadata

  • Download URL: finsense_analyzer-0.0.2.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for finsense_analyzer-0.0.2.tar.gz
Algorithm Hash digest
SHA256 9686f7795d9d2ab916fd16f364fec0a7dc2efb847a3e5751dfb26db52ad0cf75
MD5 ce608f9bac3d152e47cf28d48bd1ad58
BLAKE2b-256 5c303a5687f1da6cf6439530b8f6ec678afb9777a7f24a8a6b45e2e83852fb98

See more details on using hashes here.

File details

Details for the file finsense_analyzer-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for finsense_analyzer-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 93a66ca55a3cdb645ac6fca3dd53f4f1431ac60867554d938cb79bd2f455b0fc
MD5 2116b1ddd52f334761b1058986bc2bb1
BLAKE2b-256 cb32c96aa2c78c98bad7aacc67c1e1b0d12288cb7f3dedf50d7741c3af873157

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page