@mindscript/train
v0.0.1
Published
Train MindScript models with ease using this training library.
Downloads
8
Maintainers
Readme
Mindscript Training Library
This is a training library for Mindscript models based on a user-friendly terminal UI. It supports simple training with tokenized or non-tokenized text.
Installation
Install the @mindlearn/train
library using npm:
npm install @mindlearn/train
Usage
- Import the
train
function and specify themodelPath
:
const train = require('@mindlearn/train');
const modelPath = './simple.json';
- Use the
train
function to initiate training:
// To train with tokenized text
train(true, modelPath);
// To train with non-tokenized text
train(false, modelPath);
- Follow the prompts in the terminal to provide training data and responses.
Code example:
const train = require('@mindlearn/train');
const modelPath = './simple.json';
// To train with tokenized text
train(true, modelPath);
Running
To run the training "UI", run:
node train.js