A text based mood prediction.
Simple library to detect a mood from a single text.
Add tmoodjs to your html.
To start using tmoodjs it is necessary to create an object and initialize the brainjs neuron.
var m = new mood();
m.init();
m.loadTrainingData('es');
To predict a mood from a text:
m.guessMood(text);
var m = new mood();
m.init();
m.loadTrainingData('es');
var text = 'He finalizado mi rutina de ejercicios';
var result = m.guessMood(text);
console.log(result);
tmoodjs only works with a text without symbols and extrange characters. (ñ doens't works). Use only lowercase letters.
Training data was trained with only 35 simple phrases and 19.990 iterations with a training error: 0,012046
Detección de estado de ánimos basado en texto.
Librería simple para detectar estados de ánimo en base a un texto.
Agregar tmoodjs al html.
Para empezar a usar tmoodjs es necesario crear un objeto e inicializar la neurona artificial de brainjs.
var m = new mood();
m.init();
m.loadTrainingData('es');
Para predecir un estado de ánimo utilice:
m.guessMood(texto);
var m = new mood();
m.init();
m.loadTrainingData('es');
var text = 'He finalizado mi rutina de ejercicios';
var result = m.guessMood(text);
console.log(result);
tmoodjs solo funciona con texto sin símbolos y sin caracteres extraños. ( la ñ no funciona). Usar solamente letras minúsculas.
Los datos del entrenamiento fueron creados con únicamente 35 frases simples en español y 19.990 iteraciones y con un error de entrenamiento de: 0,012046
MIT License
Copyright (c) 2020 Marvin Josué Quiñónez Xitumul, Joaquín de la Cruz Hernández, José Alejandro García Herrera
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This project use Brainjs.
Copyright (c) 2010-2019 Heather Arthur
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.