https://github.com/malykhin/keywords_extractor
Simple flask api for keywords and key-phrases extraction
https://github.com/malykhin/keywords_extractor
flask nlp textacy
Last synced: 2 months ago
JSON representation
Simple flask api for keywords and key-phrases extraction
- Host: GitHub
- URL: https://github.com/malykhin/keywords_extractor
- Owner: malykhin
- Created: 2017-05-25T22:10:06.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-25T22:26:14.000Z (about 9 years ago)
- Last Synced: 2025-02-05T18:35:57.742Z (over 1 year ago)
- Topics: flask, nlp, textacy
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# Keywords, key phrases, named entities extraction API
Based on the textacy, spacy for the NLP operations and Flask for the API
## List of endpoints:
- `/api/keywords` - POST - request body: `{"text": "string", "number": int}`
response: `{"keywords": [string]}`
- `/api/keyphrases` - POST - request body: `{"text": "string", "number": int}`
response: `{"keyphrases": [string]}`
- `/api/named_entities` - POST - request body: `{"text": "string", "number": int}`
response: `{"named_entities": [string]}`
Don't forget to set `Content-type: application/json` header in the request.
## Installation
- Run `docker_build.sh` to build the Docker container, `docker_run.sh` - for start
- ENV variables `EXTRACTOR_PORT` - app port, default 5000, `EXTRACTOR_DEBUG` - flask debug mode, default false