0.0.1 • Published 9 months ago

@mindscript/train v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

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