https://github.com/ddangelov/restful-top2vec
Expose a Top2Vec model with a REST API.
https://github.com/ddangelov/restful-top2vec
document-embedding fastapi rest-api restful-api semantic-search semantic-search-engine text-search text-similarity top2vec topic-model topic-modeling word-embedding
Last synced: 5 months ago
JSON representation
Expose a Top2Vec model with a REST API.
- Host: GitHub
- URL: https://github.com/ddangelov/restful-top2vec
- Owner: ddangelov
- License: bsd-3-clause
- Created: 2020-04-19T17:32:53.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T04:03:13.000Z (over 2 years ago)
- Last Synced: 2023-03-05T04:53:01.816Z (about 2 years ago)
- Topics: document-embedding, fastapi, rest-api, restful-api, semantic-search, semantic-search-engine, text-search, text-similarity, top2vec, topic-model, topic-modeling, word-embedding
- Language: Python
- Homepage:
- Size: 243 KB
- Stars: 78
- Watchers: 3
- Forks: 19
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://hub.docker.com/r/ddangelov/restful-top2vec)
[](https://github.com/ddangelov/RESTful-Top2Vec/blob/master/LICENSE)
[](https://restful-top2vec.readthedocs.io/en/latest/?badge=latest)Top2Vec Model REST API
======================Expose a trained and saved [Top2Vec](https://github.com/ddangelov/Top2Vec) model with a REST API.
Get Docker Image
------------
```bash
docker pull ddangelov/restful-top2vec
```Run Container
-------------Docker Run Arguments:
* ``model_path``: Path to a saved Top2Vec model.
* ``model_name``: Name of Top2Vec model. (Should not contain spaces.)
```bash
export model_path="/path_to_top2vec_model"
export model_name="model_name"docker run -v $model_path:/app/top2vec_model -e model_name=$model_name -d --name $model_name -p 80:80 ddangelov/restful-top2vec
```Documentation
-------------Go to
