Git Product home page Git Product logo

fastapi_ner's Introduction

Deploy Named Entity Recognition using FastAPI

  • My goal to deploy any ML/DL model using FastAPI and prepare a Docker to containerized the API.

Named Entity Recognition

Named entity recognition (NER) is one of the key information extraction tasks, which is able to identify the key elements in a text, like names of people, places, brands and more. Extracting entities from text helps in detecting the import information from unstractured data as an information extraction task.

img

image source

Spacy

spaCy is a free open-source library for Natural Language Processing in Python. It provides multiple NLP sevices such as NER, POS tagging, word vectors and more.

FastAPI

FastAPI is a python web framework for building APIs and it features as a fast framework. img

Docker

Docker is a tool helps developers to easily deploy and run their applications using container. Container helps in packaging the application with all dependencies of libraries to get it running. im

How to run the app?

Local

  • cd inside the app directory and run the unicorn server cd app uvicorn main:app --reload

  • Go to FastAPI Swagger UI http://127.0.0.1:8000/docs to access your API

im

im

Docker

  • Cd into the project directory

  • Build the docker file to create the image docker build -t fastapi_ner_image .

  • Create and run the container docker run -dit --name fastapi_ner_container -p 80:80 fastapi_ner_image

  • Now visit the new url for the API from the running container

    • You can find it by listing the running containers with their information, such as port: docker container ls -a
CONTAINER ID IMAGE PORTS NAMES
ccf287c57675 right-fastapi_ner_image 0.0.0.0:80->80/tcp fastapi_ner_container

Teaser video

video

fastapi_ner's People

Contributors

hana9090 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.