1.0.1 • Published 5 years ago

bert-as-service v1.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

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]);
});