A Docker-integrated Python toolkit for performing various NLP tasks.
These instructions will help you set up the project on your local machine for development and testing.
Make sure the following are installed:
Analyze the emotional tone of text: positive, negative, or neutral.
Identify entities like persons, organizations, or locations in a sentence.
Predict the category or class of a given text.
Summarize lengthy text into concise information.
Translate text from one language to another.
-
Pull Docker image:
docker pull humanxtech/basic-nlp:v1
-
Run Docker image:
docker run -it humanxtech/basic-nlp:v1 <file-name.py>
- Sentiment Analysis Example:
docker run -it humanxtech/basic-nlp:v1 01_sentiment_analysis.py
Enter your text:
Enter the text for semantic analysis (type 'exit' to end): Docker is an amazing tool! Sentiment: Positive
-
Clone the repository:
git clone https://github.com/humanxtech/SmartDocker-NLP.git
-
Install dependencies and create a virtual environment:
python3 -m venv venv && pip install -r requirements.txt && source venv/bin/activate
-
Run examples:
python 01_sentiment_analysis.py python 02_name_entity_recognition.py python 03_text_classification.py python 04_text_summarization.py python 05_language_translation.py