JSFiddle - React, Tailwind, and code Playground
by karthick6891
HTML
<script src="https://unpkg.com/brain.js"></script>
brain js
JavaScript
var net = new brain.recurrent.LSTM();
debugger;
net.train([
{input: "my unit-tests failed.", output: "software"},
{input: "tried the program, but it was buggy.", output: "software"},
{input: "i need a new power supply.", output: "hardware"},
{input: "the drive has a 2TB capacity.", output: "hardware"},
{input: "unit-tests", output: "software"},
{input: "program", output: "software"},
{input: "power supply", output: "hardware"},
{input: "drive", output: "hardware"},
]);
console.log("output = "+net.run("drive"));