galafis/Conversational-AI-Platform
Plataforma de chat simples com análise de sentimento baseada em palavras-chave usando Flask
What's novel
Plataforma de chat simples com análise de sentimento baseada em palavras-chave usando Flask
Code Analysis
10 files read · 3 roundsA minimal Flask REST API that classifies text sentiment into positive/negative/neutral using hardcoded Portuguese and English keyword substring matching, plus a standalone CLI script that validates a small CSV file against a JSON Schema.
Strengths
The code is clean, well-documented with docstrings, and the project structure is tidy with clear separation between the Flask app, NLP models, and the data validation utility. The JSON Schema validator is the most substantive component and handles edge cases like missing files, empty CSVs, and NaN values reasonably well.
Weaknesses
The 'AI' component is a trivial if/elif/else keyword lookup with no actual NLP, ML, or tokenization — it's a toy demo, not a platform. The .env.example defines configuration variables (MAX_MESSAGE_LENGTH, LOG_LEVEL, DEFAULT_LANGUAGE) that are never used in the code, and the tests only cover the happy path with no edge cases like empty strings, special characters, or mixed-language input.
Score Breakdown
Signal breakdown
Innovation
Craft
Traction
Scope
Evidence
Commits
46
Contributors
1
Files
17
Active weeks
8
Repository
Language
Python
Stars
1
Forks
0
License
MIT