SentiLog-AI icon indicating copy to clipboard operation
SentiLog-AI copied to clipboard

Toxicity Detection for Journal & News Analysis

Open lohaarja opened this issue 1 year ago • 1 comments

Files Changed New Files Added (9 files):

  1. ml-api/README_TOXICITY.md • Comprehensive documentation for toxicity detection features • Usage guidelines and API documentation
  2. ml-api/app/routes/perspective_routes.py • New routing module for Google Perspective API integration • Handles toxicity detection endpoints
  3. ml-api/app/services/db_service.py • Database service layer for data persistence • Handles database operations and connections
  4. ml-api/app/services/news_service.py • News analysis service implementation • Provides news data processing and analysis capabilities
  5. ml-api/app/services/perspective_service.py • Google Perspective API service integration • Handles toxicity detection and content moderation
  6. ml-api/app/services/toxicity_service.py • Core toxicity detection service • Implements toxicity analysis algorithms
  7. ml-api/example_usage.py • Comprehensive examples demonstrating API usage • Code samples for all new features
  8. ml-api/setup_and_test.py • Automated setup and testing script • Environment configuration and validation
  9. ml-api/start_server.py • Enhanced server startup script • Improved configuration and initialization
  10. ml-api/news.py ◦ Utility module for news-related operations

Modified Files:

  1. ml-api/.env.example • Added new environment variables for toxicity detection • Updated configuration templates
  2. ml-api/app/init.py ( major refactor) • Enhanced application initialization • Improved service registration and configuration
  3. ml-api/app/routes/routes.py ( significant expansion) • Added new API endpoints for toxicity detection • Enhanced existing routes with new functionality • Improved error handling and response formatting
  4. ml-api/requirements.txt (new dependencies) • Added packages for toxicity detection • New dependencies for Google Perspective API and news analysis
  5. ml-api/run.py ( lines modified) • Updated application startup logic • Enhanced configuration loading

Key Features Added:

• Toxicity Detection: Integration with Google Perspective API for content moderation • News Analysis: Service for analyzing and processing news content • Enhanced Service Architecture: Modular service layer with dedicated database, news, and toxicity services • Comprehensive Documentation: Detailed README for toxicity features • Example Scripts: Complete usage examples and setup automation • Improved Configuration: Enhanced environment variable management

lohaarja avatar Aug 15 '25 15:08 lohaarja

@lohaarja is attempting to deploy a commit to the Openml-stack Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Aug 15 '25 15:08 vercel[bot]