BERT token level embedding with MxNet
Project description
Bert Embeddings
Install
pip install bert-embedding
If you want to run on GPU machine, please install mxnet-cu92
.
pip install mxnet-cu92
Usage
from bert_embedding import BertEmbedding
sentences = ["Hello World", "Token level embeddings from BERT model on mxnet and gluonnlp"]
bert = BertEmbedding()
result = bert.embedding(sentences)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bert_embedding-0.1.0.tar.gz
(9.3 kB
view hashes)
Built Distribution
Close
Hashes for bert_embedding-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4710fbd7f8f7a86669e1bf96c094fee4ed697064887b3dfd0bcf82f81f247f79 |
|
MD5 | eb711e5648965d59507bfefce9689225 |
|
BLAKE2b-256 | 607095d01fba440df1cfe1b6fa6b46510f0bbcec8be8c4f6ee192a429346271a |