0.0.1 • Published 2 years ago
@mindscript/train v0.0.1
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/trainUsage
- Import the
trainfunction and specify themodelPath:
const train = require('@mindlearn/train');
const modelPath = './simple.json';- Use the
trainfunction 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.js0.0.1
2 years ago