sparkai

    0.1.3 • Public • Published

    Spark

    AI In Javascript

    Get Started

    npm install sparkai
    var Spark = require('sparkai');

    Documentation

    Markov Chains

    Spark comes built in with a Markov Chain generator.

    Example:

    var Spark = require('sparkai');
     
    var bot = new Spark.MarkovChain({
      sentences: 1 // number of sentences (default = 3)
    });
    bot.train(['some data', 'more data']); // can be an array, or a single string
    console.log(bot.generate()); // generates text

    License

    Licensed under the MIT License

    Keywords

    none

    Install

    npm i sparkai

    DownloadsWeekly Downloads

    14

    Version

    0.1.3

    License

    MIT

    Last publish

    Collaborators

    • kingkabir