https://github.com/duongkstn/albert-vi-as-service
albert-vi-as-service: A Fork of bert-as-service to deploy albert_vi
https://github.com/duongkstn/albert-vi-as-service
albert bert-as-service natural-language-processing vietnamese-language vietnamese-nlp
Last synced: 7 months ago
JSON representation
albert-vi-as-service: A Fork of bert-as-service to deploy albert_vi
- Host: GitHub
- URL: https://github.com/duongkstn/albert-vi-as-service
- Owner: duongkstn
- License: mit
- Created: 2020-04-27T07:06:17.000Z (over 5 years ago)
- Default Branch: duong_albert
- Last Pushed: 2020-04-29T11:16:13.000Z (over 5 years ago)
- Last Synced: 2025-04-01T04:32:46.095Z (8 months ago)
- Topics: albert, bert-as-service, natural-language-processing, vietnamese-language, vietnamese-nlp
- Language: Python
- Homepage:
- Size: 8.57 MB
- Stars: 11
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Install
Install the server and client via `pip`. They can be installed separately or even on *different* machines:
```bash
# server
git clone https://github.com/duongkstn/albert-vi-as-service.git
cd albert-vi-as-service/server
pip install albert-vi-serving-server
python setup.py install
#client
pip install bert-serving-client==1.10.0 # client, independent of `albert-vi-as-service`
```
Getting Started
#### 1. Download a Pre-trained ALBERT_VI Model
Download a model of [albert_vi](https://github.com/ngoanpv/albert_vi), remember to download sentence piece model
#### 2. Start the ALBERT_VI service
After installing the server, you should be able to use `albert-vi-serving-start` CLI as follows:
```bash
albert-vi-serving-start -model_dir albert_vi_model/ -spm_model_file albertvi_30k-clean.model -config_name albert_config.json -ckpt_name model.ckpt-1015000
```
At client side, your code should be similar to original bert-as-service repos
It is noted that you can still use `bert-serving-start` command independently