duongkstn / albert-vi-as-service Goto Github PK
View Code? Open in Web Editor NEWalbert-vi-as-service: A Fork of bert-as-service to deploy albert_vi
License: MIT License
albert-vi-as-service: A Fork of bert-as-service to deploy albert_vi
License: MIT License
Dear author,
Only one vector was return if I use encode instead of multiple vector like other BERT.
For examples.
'''
from bert_serving.client import BertClient
bert_client = BertClient(port=5555, port_out=5556)
text = ["vô cùng đẹp trai", "đẹp trai thi mới có nhiều người yêu"]
x = bert_client.encode(text, show_tokens=False)
print(x.shape)
print(x)
'''
will return
'''
(2, 768)
[[ 0.2791622 0.38170967 -0.4323979 ... 0.5590598 -0.30385852
-0.21244307]
[ 0.2540159 0.1214181 -0.31108022 ... -0.07018693 -0.02891144
0.41919646]]
'''
instead of something like "23768" matrix
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.