更に当社の商用サービス Bot Libre for Business$4.99
Bot Libre Dev

learn

による cliffh 掲載 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: 2732, today: 3, week: 5, month: 28

Id: 31470717
タグ: script, learn
掲載: Jan 13 2020, 10:18
回答: 1
眺望: 2706, 今日の: 4, 週間: 6, 月: 27
0 0 0.0/5