Skip to main content

BERT token level embedding with MxNet

Project description

Bert Embeddings

Build Status

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


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)

Uploaded Source

Built Distribution

bert_embedding-0.1.0-py3-none-any.whl (13.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page