help@rskworld.in +91 93305 39277
RSK World
  • Home
  • Development
    • Web Development
    • Mobile Apps
    • Software
    • Games
    • Project
  • Technologies
    • Data Science
    • AI Development
    • Cloud Development
    • Blockchain
    • Cyber Security
    • Dev Tools
    • Testing Tools
  • About
  • Contact

Theme Settings

Color Scheme
Display Options
Font Size
100%
Back to Project
RSK World
sentiment-analysis-bot
/
tests
/
__pycache__
RSK World
sentiment-analysis-bot
Sentiment Analysis Bot - Python + Flask + NLTK + TextBlob + spaCy + VADER + Emotion Detection + Sentiment Analysis
__pycache__
  • test_app.cpython-313.pyc17.4 KB
setup.py.env.example.gitkeep
setup.py
Raw Download
Find: Go to:
"""
Sentiment Analysis Bot Setup Script
Author: RSK World (https://rskworld.in)
Founded by: Molla Samser
Designer & Tester: Rima Khatun
Contact: help@rskworld.in, +91 93305 39277
Year: 2026
"""

from setuptools import setup, find_packages

with open("README.md", "r", encoding="utf-8") as fh:
    long_description = fh.read()

with open("requirements.txt", "r", encoding="utf-8") as fh:
    requirements = [line.strip() for line in fh if line.strip() and not line.startswith("#")]

setup(
    name="sentiment-analysis-bot",
    version="1.0.0",
    author="RSK World",
    author_email="help@rskworld.in",
    description="Real-time sentiment analysis chatbot with emotion detection",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://rskworld.in",
    project_urls={
        "Website": "https://rskworld.in",
        "Contact": "https://rskworld.in/contact.php",
        "Source": "https://rskworld.in/project",
    },
    packages=find_packages(),
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "Intended Audience :: Education",
        "Topic :: Scientific/Engineering :: Artificial Intelligence",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "License :: Educational Use Only",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
        "Programming Language :: Python :: 3.11",
        "Operating System :: OS Independent",
        "Framework :: Flask",
        "Natural Language :: English",
    ],
    python_requires=">=3.8",
    install_requires=requirements,
    extras_require={
        "dev": [
            "pytest>=7.4.2",
            "pytest-flask>=1.2.0",
            "black>=23.0.0",
            "flake8>=6.0.0",
        ],
        "advanced": [
            "transformers>=4.33.2",
            "torch>=2.0.1",
            "sqlalchemy>=2.0.20",
        ],
    },
    entry_points={
        "console_scripts": [
            "sentiment-bot=run:main",
        ],
    },
    include_package_data=True,
    package_data={
        "": ["templates/*.html", "static/*", "*.md", "*.txt"],
    },
    keywords=[
        "sentiment analysis",
        "chatbot",
        "nlp",
        "emotion detection",
        "flask",
        "nltk",
        "spacy",
        "textblob",
        "artificial intelligence",
        "machine learning",
        "natural language processing",
    ],
    zip_safe=False,
)
88 lines•2.6 KB
python
.env.example
Raw Download
Find: Go to:
# Sentiment Analysis Bot Environment Configuration
# Author: RSK World (https://rskworld.in)
# Founded by: Molla Samser
# Designer & Tester: Rima Khatun
# Contact: help@rskworld.in, +91 93305 39277
# Year: 2026

# Flask Configuration
FLASK_ENV=development
FLASK_DEBUG=True
SECRET_KEY=your-secret-key-here

# Server Configuration
HOST=0.0.0.0
PORT=5000

# Logging Configuration
LOG_LEVEL=INFO
LOG_FILE=sentiment_bot.log

# Rate Limiting
RATELIMIT_STORAGE_URL=memory://
RATELIMIT_DEFAULT=100 per hour

# NLP Model Configuration
SPACY_MODEL=en_core_web_sm

# Sentiment Analysis Thresholds
VADER_THRESHOLD_POSITIVE=0.05
VADER_THRESHOLD_NEGATIVE=-0.05
TEXTBLOB_THRESHOLD_POSITIVE=0.1
TEXTBLOB_THRESHOLD_NEGATIVE=-0.1

# Response Configuration
MAX_RESPONSE_LENGTH=500
MAX_MESSAGE_LENGTH=1000
MAX_CONVERSATION_HISTORY=100

# File Upload Configuration
MAX_CONTENT_LENGTH=16777216
UPLOAD_FOLDER=uploads

# Database Configuration (if using database)
DATABASE_URL=sqlite:///sentiment_bot.db

# Cache Configuration
CACHE_TYPE=simple
CACHE_DEFAULT_TIMEOUT=300

# Security Configuration
WTF_CSRF_ENABLED=True
WTF_CSRF_TIME_LIMIT=3600

# Analytics Configuration
ENABLE_ANALYTICS=True
ANALYTICS_RETENTION_DAYS=30

# CORS Configuration
CORS_ORIGINS=http://localhost:3000,http://localhost:5000,http://127.0.0.1:5000
60 lines•1.3 KB
text
static/.gitkeep
Raw Download
Find: Go to:
# This file ensures the static directory is tracked by git
# Static files (CSS, JS, images) can be placed here if needed
# Currently, the project uses CDN links for Bootstrap and Font Awesome
4 lines•195 B
text

About RSK World

Founded by Molla Samser, with Designer & Tester Rima Khatun, RSK World is your one-stop destination for free programming resources, source code, and development tools.

Founder: Molla Samser
Designer & Tester: Rima Khatun

Development

  • Game Development
  • Web Development
  • Mobile Development
  • AI Development
  • Development Tools

Legal

  • Terms & Conditions
  • Privacy Policy
  • Disclaimer

Contact Info

Nutanhat, Mongolkote
Purba Burdwan, West Bengal
India, 713147

+91 93305 39277

hello@rskworld.in
support@rskworld.in

© 2026 RSK World. All rights reserved.

Content used for educational purposes only. View Disclaimer