Atualize para nosso Platinum serviço e obter o seu próprio design personalizado avatar 3D
Bot Libre Dev

learn

por cliffh postado Jan 13 2020, 10:18

in self what is the syntax for the "learn" operator please? 


by admin posted Jan 14 2020, 8:26

In Self the learn() function takes a response category object that has a pattern and template.

For example:
learn( { pattern : "hello", template : "How are you today?" } );
or,
var response = new Object();
response.pattern = "hi";
response.template = "bye";
learn( response );

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 2280, today: 3, week: 6, month: 39

Id: 31470717
Tags: script, learn
Postado: Jan 13 2020, 10:18
Respostas: 1
Pontos de vista: 2261, hoje: 3, semana: 5, mês: 40
0 0 0.0/5