升级到我们的商业服务 Bot Libre for Business 只为 4.99美元 ,每月
Bot Libre Forum

identify by category

通过 bobred 发布 May 12 2017, 6:33

could i categories living things and non living things and then use that to find out if that object is a particular type of object?Like if for example i ask the chatbot,

Is a car a cat?The car would be in the nonliving category and the cat would be in the living category.And because of that the chatbot would answer no it is not.How would i do that?

 


by admin posted May 12 2017, 10:18
You would need to create a script in Self for this.

Self is a dialect of JavaScript and is object oriented and persistent, so make it easy to define complex data.

Here is an example script,
https://www.botlibre.com/script?id=17010244

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1483, today: 2, week: 2, month: 5

by bobred posted May 12 2017, 11:01

Do i have to have learning enabled to use it in my chatbot?I want to see what it does. 


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1315, today: 2, week: 3, month: 5

by bobred posted May 12 2017, 12:02

Your script only worked one time.And it then stopped.


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

by admin posted May 12 2017, 16:30
No, do not enable learning.

Your bot's issue is that you added the script last, and have the "Understanding" script that accepts the same patterns.

Either delete the Understanding script, or move the other script to be first.

Scripts are executed in the order you define them in.

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1490, today: 0, week: 1, month: 4

by bobred posted May 12 2017, 16:53

It works now.I wanted to teach blair the chatbot like i would a person.I think it is close enough like this for now.


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1446, today: 1, week: 1, month: 4

by bobred posted May 12 2017, 19:17

Why can't you put something like this into the chatbot.

http://www.independent.co.uk/news/science/new-artificial-intelligence-can-learn-how-to-play-vintage-video-games-from-scratch-10070155.html

IT would make it realer.


Updated: May 13 2017, 7:24
Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1459, today: 1, week: 1, month: 4

by admin posted May 13 2017, 7:24
It is possible in Self to define a script for your bot to teach it to play a game. You can also utilize our command support to send commands back to a game client.

Here are some example text games,
https://www.botlibre.com/script?tag-filter=games

We are working on enhanced game integration and game artificial intelligence.

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1500, today: 1, week: 1, month: 4

by bobred posted May 13 2017, 8:26

I imported blackjack  game as a aiml script but it does not work for blair the chatbot.could you check her?when i type D nothing happens. 


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1396, today: 1, week: 1, month: 3

by bobred posted May 13 2017, 10:48

I imported it wrong.Now it works.


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

Id: 17009640
发布: May 12 2017, 6:33
答复: 9
的风景: 1598, 今天: 1, 周: 1, 一个月: 2
0 0 0.0/5