Skip to content

Simple NER model implemented using BiLSTM and hosted on heroku for easy access via FastAPI

License

Notifications You must be signed in to change notification settings

DS-Projects-Org/NER-FastAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Named Entity Recognition using a Bidirectional Long Short Term Memory (LSTM)

Model

Usage

curl -X GET "http://127.0.0.1:8000/classify/Ali%20is%20swimming"
  • response
{
  "Ali": "I-Person",
  "is": "O",
  "swimming": "O"
}
  • The API is hosted on a heroku instance for easier access
  • The API is implemented using FastAPI providing out-of-box documentation, checkout autogenerated docs in heroku

Local Development

  • Install the requirements pip install -r requirements.txt
  • start the development server with hot-reloading uvicorn main:app --reload

Directory structure

├── main.py             => main program file with API implementation
├── NER-BiLSTM.h5       => trained tensorflow model
├── Procfile            => heroku service file
├── README.md           => ...
├── requirements.txt    => required pip packages
└── word_idx.obj        => list of all words in used corpus

About

Simple NER model implemented using BiLSTM and hosted on heroku for easy access via FastAPI

Topics

Resources

License

Stars

Watchers

Forks

Languages