This Flask application integrates with MongoDB for user data storage and utilizes various APIs for natural language processing tasks such as sentiment analysis, named entity recognition (NER), and emotion detection. Tailwind CSS is used for styling the frontend.
Clone the repository:
git clone https://github.com/Panchalparth471/NLP-Website.git
cd NLP-Website
Install the dependencies: pip install -r requirements.txt
MONGODB_URL=mongodb+srv://your-username:your-password@cluster0.ko0ihta.mongodb.net/NLP
EDENAI_API_KEY=your-edenai-api-key
Make sure to replace MONGODB_URL and EDENAI_API_KEY with your actual MongoDB connection URI and Eden AI API key.
Get your api key from Eden AI
From myapi.py file in the headers replace <YOUR_API_KEY/API_TOKEN> to the api key you got
Run the Flask application:
python app.py
User Registration/Login:
/ - Homepage
/register - User registration page
/add_data - Endpoint to add user data to MongoDB
/login - User login endpoint
/home - User home page
/sentiment - Sentiment analysis page
/ner - Named entity recognition page
/emotion - Emotion detection page
/do_sentiment - Endpoint for performing sentiment analysis
/do_ner - Endpoint for performing named entity recognition
/do_emotion - Endpoint for performing emotion detection
Contributions are welcome! Please fork the repository and create a pull request with your suggested changes.
This project is licensed under the MIT License - see the LICENSE file for details.
Refer to the Eden AI Documentation .
Flask is a lightweight WSGI web application framework in Python. It provides tools, libraries, and technologies that allow you to build web applications quickly and efficiently. For more information and documentation, visit the Flask Official Website.
PyMongo is a Python distribution containing tools for working with MongoDB, and is the recommended way to work with MongoDB from Python. For more information and documentation, visit the PyMongo Official Website.
Tailwind CSS is a highly customizable, low-level CSS framework that gives you all the building blocks you need to build designs without any annoying opinionated styles you have to fight to override. For more information and documentation, visit the Tailwind CSS Official Website.