serverless-nlp

所属分类:自然语言处理
开发工具:Python
文件大小:73483KB
下载次数:0
上传日期:2019-03-05 21:31:03
上 传 者sh-1993
说明:  无服务器nlp,无服务器自然语言处理服务
(serverless-nlp,Serverless Natural Language Processing Service)

文件列表:
LICENSE (1069, 2019-03-06)
lambda-api (0, 2019-03-06)
lambda-api\.chalice (0, 2019-03-06)
lambda-api\.chalice\config.json (201, 2019-03-06)
lambda-api\.chalice\deployed (0, 2019-03-06)
lambda-api\.chalice\deployed\dev.json (440, 2019-03-06)
lambda-api\app.py (3188, 2019-03-06)
lambda-api\chalicelib (0, 2019-03-06)
lambda-api\chalicelib\api_handler.py (2537, 2019-03-06)
lambda-api\chalicelib\app_logger.py (261, 2019-03-06)
lambda-api\chalicelib\constants.py (769, 2019-03-06)
lambda-api\chalicelib\lambda_function.py (2954, 2019-03-06)
lambda-api\requirements.txt (29, 2019-03-06)
lambda-spacy (0, 2019-03-06)
lambda-spacy\app_handler.py (1618, 2019-03-06)
lambda-spacy\app_logger.py (261, 2019-03-06)
lambda-spacy\constants.py (1083, 2019-03-06)
lambda-spacy\en_core_web_sm.zip (37344528, 2019-03-06)
lambda-spacy\lambda-package.zip (38483191, 2019-03-06)
lambda-spacy\lambda_function.py (1175, 2019-03-06)
lambda-spacy\nlp.py (5224, 2019-03-06)
lambda-spacy\requirements.txt (28, 2019-03-06)
lambda-spacy\tmp (0, 2019-03-06)
lambda-spacy\tmp\.ignore (0, 2019-03-06)

# serverless-nlp Demo of a Serverless Natural Language Processing Service. This app uses: - [spaCy](https://https://github.com/explosion/spaCy): deep learning NLP (natural language processing) library - [Chalice](https://github.com/aws/chalice): serverless Python framework - [AWS Lambda](https://aws.amazon.com/lambda/): FaaS compute service - [API Gateway](https://aws.amazon.com/api-gateway/): API management service - [Dashbird.io](https://dashbird.io/): monitoring, logging and anomaly detection ## Quick Demo We've deployed a demo API for this application using [AWS Lambda](https://aws.amazon.com/lambda/) and [API Gateway](https://aws.amazon.com/api-gateway/). You can try examples with a pre-determined text on these URLs: - Sentence Extraction: [https://g5kl1e9fhf.execute-api.us-east-1.amazonaws.com/api/example/sentence](https://g5kl1e9fhf.execute-api.us-east-1.amazonaws.com/api/example/sentence) - Named Entity Recognition: [https://g5kl1e9fhf.execute-api.us-east-1.amazonaws.com/api/example/named-entity](https://g5kl1e9fhf.execute-api.us-east-1.amazonaws.com/api/example/named-entity) - Part-of-Speech Tagging: [https://g5kl1e9fhf.execute-api.us-east-1.amazonaws.com/api/example/part-of-speech](https://g5kl1e9fhf.execute-api.us-east-1.amazonaws.com/api/example/part-of-speech) 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](https://spacy.io/usage/models) to support multiple languages. ## Pre-requisites - [Python 3.6+](https://www.python.org/downloads/release/python-370/) - [pip 18.1+](https://pypi.org/project/pip/)

近期下载者

相关文件


收藏者