Releases: mathrailsAI/sentiment_insights
Releases · mathrailsAI/sentiment_insights
Multi-Format Export Support
What's New
Comprehensive Export Functionality
- Multiple Formats: Export analysis results to CSV, Excel, and JSON formats
- Dynamic Segments: Automatic detection and flattening of complex nested segment structures
- Advanced Filtering: Filter exports by sentiment, segments, date ranges, and custom criteria
- Rich Content: Include summary statistics, segment analysis, and entity/phrase details
- Fluent Interface: Chainable methods for easy export workflows
Export Features
- CSV Export: Clean tabular format with configurable sections and headers
- Excel Export: Formatted worksheets with multiple sheets and styling
- JSON Export: Structured API-friendly format with metadata
- Smart Headers: Dynamic column generation based on segment structure
- Data Filtering: Export only the data you need with powerful filter options
Developer Experience
- Fluent API:
result.filter_sentiment(:positive).responses_only.to_csv()
- Quick Methods:
result.export_positive(:excel)
,result.export_negative(:json)
- Pure Ruby: No Rails dependencies, works in any Ruby environment
- Comprehensive Tests: Test coverage for all export formats and edge cases
v0.3.0
Integrate Claude AI as a new provider
- Adds support for Claude AI as a new NLP provider
- Enables provider selection via the
provider
argument (:claude
) - Implements Claude-specific prompt formatting and response parsing
- Works alongside existing providers like OpenAI and AWS Comprehend
- Fully backward compatible with existing functionality
v0.2.0
Gem Release: v0.2.0
This release introduces support for runtime configuration of key parameters.
Added
question
can now be passed as an argumentprompt
can now be passed as an argumentbatch_size
can now be passed as an argument
These values no longer need to be hardcoded and can be customized per invocation.
Notes
- Backward compatible: default values are used if arguments are not provided
Kickoff Release – Sentiment, Phrases & Entities
🎉 First public release of the SentimentInsights gem!
- Sentiment analysis via OpenAI, AWS Comprehend, or local NLP
- Key phrase extraction with segment context
- Named entity recognition support