This directory contains example scripts demonstrating how to use the sentibank package.
Before running the examples, make sure you have sentibank installed:
pip install sentibankDemonstrates how to load dictionaries and perform basic sentiment analysis.
Shows how to compare sentiment scores across different dictionaries.
Demonstrates analyzing multiple texts efficiently.
Shows caching, logging, and other advanced features.
Command-line interface usage examples.
# Run basic usage example
python examples/basic_usage.py
# Run dictionary comparison
python examples/compare_dictionaries.py
# Run batch analysis
python examples/batch_analysis.pyThe data/ subdirectory contains sample text files used by the examples.