chamkank / flask-chatterbot

Simple boilerplate for ChatterBot using Flask
377 stars 263 forks source link

Is the demo functional? #1

Closed flooie closed 8 years ago

flooie commented 8 years ago

Is the demo functional?

chamkank commented 8 years ago

Yep! It hasn't been trained beyond the corpus so the answers you are seeing are from multiple people using the demo with different inputs.

flooie commented 8 years ago
chamkank commented 8 years ago

If you're running it locally, you can pass input using the url.

Ex: http://localhost:5000/get/how%20are%20you?

EDIT (Feb 2018): A user interface now exists thanks to @binitshah!

naivefun commented 7 years ago

I'm getting strange answers like: Q: how are you? A: Who? Who is but a form following the function of what

Q: what day is today? A: Artificial Intelligence is the branch of engineering and science devoted to constructing machines that think.

chamkank commented 7 years ago

Those are the responses selected by the logic adapters when that bot doesn't have a lead. For more info check out this response on how the bot works.

For example, you can train the bot to answer "How are you?" like this: chatbot.train([ "How are you?", "I am good" ])

naivefun commented 7 years ago

I see. But I did call train with English corpus and English.Greetings corpus which is built-in right?

chamkank commented 7 years ago

Yeah, for the English corpus you can find all of the queries and their responses here. Try any of the exact queries in any of the files there and you'll see their responses.

naivefun commented 7 years ago

IC. I tried 'how are you?' not 'how are you doing?'. I'm surprised this doesn't match in best matches adapter.

chamkank commented 7 years ago

That's because "how are you?" is closer to "who are you?" than it is to "how are you doing?". The response to "who are you?" is what results in "Who? Who is but a form following the function of what" (see conversations.yml).