• Twitter
  • Facebook
  • Google+
  • Instagram
  • Youtube

Friday, January 29, 2016

Part 1 : Artificial Intelligence Bot

Hello guys,

welcome back to my blog! now, I am studing about Artificial intelligence. Since the world is getting more and more complicated. I need narrow down somthing what i want to invest and something what have to be taken AI. Simply, i undirectly make my other self to work at same time. There are a lot of refrences about chatbot. and i need you forget all of them. lets get straight and think about "How could you speak and understand the others with their language?" of course studing!. "How did you study?" clearly, you were learn form your parents, right? Then, if you get the simple sentence like this

I play football
I visit the park

of course they have the pattern. Subject+Verb+Adj+Object. Take a look the other example :

Who are you?
How were you made of?

Those sentence have too. Who/How+Be+Subject+Verb.
So, first thing i need to do is separate a sentence into many words. lets pull them off!

if i have the sentence :
"I visit the park".

The output would be :
I
visit
the
park

The question is "Is there any function of C code to separate it into words?". oh sorry i forget to tell you. I work on C code. When i look over ISO/IEC 9899:2011 (Reference of C programmer)i put my eyes on strtok function.

Following is the declaration for strtok() function.
char *strtok(char *str, const char *delim)

As results :
The sentence is "dog jump the roof" :


The sentence is "i visit the park"
Note : Tidak ada dalam kamus = There is no word in its dictonary

As you look,it only recognizes some words (dog, jump, the, and roof). how can it possible? yes, i teach it the word what i wanna to teach. so basically, it has already had a dictionary that it can recognize my sentence into words. here is its dictonary :
The bad news is i need write down 1 million words into notepad. How suck is that?
So, lets get simple!, there are a lot of dictionary apps. The thing is "how hack the data of those app?".
ok, i think it is over now. that's what i have wrote down. if i make a progress. i'll post as soon as possible. keep in touch!

1 comment: