Skip to content

byrro/serverless-nlp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

serverless-nlp

Demo of a Serverless Natural Language Processing Service. This app uses:

  • spaCy: deep learning NLP (natural language processing) library
  • Chalice: serverless Python framework
  • AWS Lambda: FaaS compute service
  • API Gateway: API management service
  • Dashbird.io: monitoring, logging and anomaly detection

Quick Demo

We've deployed a demo API for this application using AWS Lambda and API Gateway.

You can try examples with a pre-determined text on these URLs:

The text used for the examples above is:

Lambda is an event-driven, serverless computing platform provided by Amazon as a part of the Amazon Web Services. It is a computing service that runs code in response to events and automatically manages the computing resources required by that code. It was introduced in November 2014. Andy Jassy is the CEO of Amazon Web Services. The company earned $17.4 billion in revenue and $4.331 billion in profits in the year of 2017. Source: Wikipedia.org.

To try the API with your own text sample, use cURL:

curl -XPOST -H "Content-type: application/json" -d '{"data_type": "named-entity", "text": "Your text goes here!", "model_name": "en_core_web_sm"}' 'https://g5kl1e9fhf.execute-api.us-east-1.amazonaws.com/api/extract'

In the data_type argument, you can provide:

  • sentence
  • named-entity
  • part-of-speech

This demo API only supports text in English, having only one model deployed (en_core_web_sm). You can clone/fork this repo and deploy other spaCy models to support multiple languages.

Pre-requisites

About

Serverless Natural Language Processing Service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages