This project is a REST API developed using FastAPI and NLTK to perform various text processing operations. The API allows text tokenization, partitioning, and named entity recognition. It is intended to be used as a backend by frontend applications and other services that require natural language processing.
- Python
- FastAPI
- NLTK
- SQLAlchemy
- Pydantic
- Uvicorn
- Flake8
- PyTest
- git clone https://github.com/erikagayan/NLTK-fastAPI.git
- cd NLTK_FastAPI_Project
- python -m venv venv
- source venv/bin/activate
- pip install -r requirements.txt
import nltk
nltk.download()End click download in menu
Then test if everything is working
from nltk.corpus import brown
brown.words()You should get: ['The', 'Fulton', 'County', 'Grand', 'Jury', 'said', ...]
- uvicorn main:app --reload
Open NLTK_fastAPI.postman_collection file in postman and test sentences