Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)