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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9686f7795d9d2ab916fd16f364fec0a7dc2efb847a3e5751dfb26db52ad0cf75
|
|
| MD5 |
ce608f9bac3d152e47cf28d48bd1ad58
|
|
| BLAKE2b-256 |
5c303a5687f1da6cf6439530b8f6ec678afb9777a7f24a8a6b45e2e83852fb98
|
File details
Details for the file finsense_analyzer-0.0.2-py3-none-any.whl.
File metadata
- Download URL: finsense_analyzer-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93a66ca55a3cdb645ac6fca3dd53f4f1431ac60867554d938cb79bd2f455b0fc
|
|
| MD5 |
2116b1ddd52f334761b1058986bc2bb1
|
|
| BLAKE2b-256 |
cb32c96aa2c78c98bad7aacc67c1e1b0d12288cb7f3dedf50d7741c3af873157
|