Skip to content

mindlearn/train

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. Import the train function and specify the modelPath:
const train = require('@mindlearn/train');

const modelPath = './simple.json';
  1. Use the train function to initiate training:
// To train with tokenized text
train(true, modelPath);

// To train with non-tokenized text
train(false, modelPath);
  1. 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

About

Train MindScript models with ease using this training library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published