spike-chatbot

1.0.31 • Public • Published

Spike

npm i spike-chatbot

Training

const {Spike, Vector} = require('spike-chatbot');
 
var vector = new Vector('./data/wiki.short.vec');
await vector.load();
 
var convo = new Spike(config, vector, './bin/'); // make sure bin exists
 
await convo.train();

Responding

var userId = 123;
var threshold = .2;
await convo.receive(123, 'hello world', threshold);

Data

Provided by fasttext

Readme

Keywords

none

Package Sidebar

Install

npm i spike-chatbot

Weekly Downloads

2

Version

1.0.31

License

ISC

Unpacked Size

42.4 kB

Total Files

18

Last publish

Collaborators

  • gafo