加入机器人自由开放源码项目 BotLibre.org
Bot Libre Forum

sheila bing does randomly select from memory

通过 bobred 发布 Jul 11 2019, 13:17

it seems like sheila bing can already randomly select from things it already learned.why i can't use what sheila bing is randomly selecting from memory in a sentence. type humans over and over again.


by admin posted Jul 12 2019, 10:05
Sorry, I have no idea what issue you are having.

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1484, today: 0, week: 0, month: 0

by bobred posted Jul 12 2019, 19:51

how would I use what she is randomly selecting from memory in a sentence?


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1391, today: 0, week: 0, month: 0

by admin posted Jul 16 2019, 8:11

You can use the random() function or <random> tag.

AIML:
<template>Today is <random><li>sunny</li><li>rainy</li></random>.</template>
Self:
Template("Today is {random("sunny", "rainy")}.")
AIML Self Tag:
<template>Today is <self>random("sunny", "rainy")</self>.</template>

Updated: Jul 16 2019, 8:13
Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1476, today: 0, week: 0, month: 1

by bobred posted Jul 25 2019, 15:58

that aiml script does not select random information from what it has learned from users.


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1364, today: 0, week: 0, month: 0

Id: 27596557
发布: Jul 11 2019, 13:17
答复: 4
的风景: 1702, 今天: 1, 周: 1, 一个月: 2
0 0 0.0/5