Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 1 day 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 (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T04:03:13.000Z (almost 2 years ago)
- Last Synced: 2023-03-05T04:53:01.816Z (over 1 year 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://img.shields.io/docker/v/ddangelov/restful-top2vec?label=docker)](https://hub.docker.com/r/ddangelov/restful-top2vec)
[![](https://img.shields.io/pypi/l/top2vec.svg)](https://github.com/ddangelov/RESTful-Top2Vec/blob/master/LICENSE)
[![](https://readthedocs.org/projects/restful-top2vec/badge/?version=latest)](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
![](https://raw.githubusercontent.com/ddangelov/RESTful-Top2Vec/master/images/restful-top2vec.png)