Open Jasperty opened 5 years ago
Hi @Jasperty Here is my implementation (https://github.com/duongkstn/albert-vi-as-service), which is same as bert-as-service. I added some albert file to server/bert folder. Although this is just for experiment, you can easily start by following:
git clone my project
cd albert_vi_as_service/server
python setup.py install
use albert-vi-serving-start
command as bert-serving-start
. But it is noted that you have to declare sentence piece model by option: -spm_model_file
At client side, you use bertClient as normal (pip install bert-serving-client==1.10.0
) (NOTE: do not use client of my albert-vi-as-service
)
Give me a star and feel free to contribute if it's helpful to you <3. (I named it 's 'albert-vi' since my purpose is to build a server of albert_vi
Hi @Jasperty Here is my implementation (https://github.com/duongkstn/albert-vi-as-service), which is same as bert-as-service. I added some albert file to server/bert folder. Although this is just for experiment, you can easily start by following:
- git clone my project
- cd albert_vi_as_service/server
- python setup.py install
- use
albert-vi-serving-start
command asbert-serving-start
. But it is noted that you have to declare sentence piece model by option:-spm_model_file
- At client side, you use bertClient as normal (
pip install bert-serving-client==1.10.0
) (NOTE: do not use client of myalbert-vi-as-service
)Give me a star and feel free to contribute if it's helpful to you <3. (I named it 's 'albert-vi' since my purpose is to build a server of albert_vi
啥是 sentence piece model??
Hi @kFoodie you can read this documentation
ALBERT :A lite BERT for self-supervised learning of language representations