Chatbot for Kcrong
I Used...
- Python 3.6 (Awesome Format String!!) .
- konlpy (Korean pos tagger with mecab) .
- My Personal Python Utility .
to install,
$ pip install -r requirements.txt
$ bash <(curl -s https://raw.githubusercontent.com/konlpy/konlpy/master/scripts/mecab.sh)
I want to make something like : DSTC bot
So.. Let's See features with screenshot
First, you need to give the name of the bot.
After, Just teach anything you want. Let's talk about apple here.
As you can see, Bororo Bot
has learned information about apples.
Next, Let's teach about apple's color
Bororo Bot
has learned apple's color!
After the user enters a sentence, the Analyzer
starts to analyzing
(There is some typo.. anal = Analy'z'er(talk)
)
In Analzer, store pos tagging result in the tag
variable
Then, as a pos tagging result(the morpheme), get object's name, attr, value
`apple's color is red
name
: appleattr
: colorvalue
: red
After parsing name
, attr
, value
,
bot starts to learning.
Check attr
isn't NULL .
if there is valid attr
, goto _learn_info
func,
else then, goto _learn_thing
func .
The difference between the two functions is very small.
just Fragmentary information
or Object's Information
.
After learning,
to print out the learned results, use the print_my_knowledge
function at Brain
class .