bert-as-service

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i bert-as-service

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

3.72 kB

Total Files

6

Last publish

Collaborators

  • gafo