bert-as-service
v1.0.1
Published
bert-as-service client for NodeJS
Downloads
27
Maintainers
Readme
bert-as-service
NodeJS module for consuming bert-as-service to map variable-length sentences to fixed-length vectors.
Installation
npm i bert-as-service
Usage
const Bert = require('bert-as-service');
const bert = new Bert('http://localhost:8125');
bert.vectorize(['Hello world']).then(embeddings => {
console.log(embeddings[0]);
});