Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Sentibank Examples

This directory contains example scripts demonstrating how to use the sentibank package.

Getting Started

Before running the examples, make sure you have sentibank installed:

pip install sentibank

Examples

Basic Usage (basic_usage.py)

Demonstrates how to load dictionaries and perform basic sentiment analysis.

Dictionary Comparison (compare_dictionaries.py)

Shows how to compare sentiment scores across different dictionaries.

Batch Analysis (batch_analysis.py)

Demonstrates analyzing multiple texts efficiently.

Advanced Features (advanced_features.py)

Shows caching, logging, and other advanced features.

CLI Examples (cli_examples.sh)

Command-line interface usage examples.

Running the 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.py

Data Files

The data/ subdirectory contains sample text files used by the examples.