Make a Chatbot with IBM Watson Part 2

Image of Chatbot
Here is the link to part 1: Part 1

Now that we finished with defining the intents for our chatbot, let’s move on to entities and dialogs. In general, entities are specific details about what the user wants. In the previous part, I mentioned that a user who wants to find RPG games is different from a user who wants to get a shooter game. The details about their games are different. This is where entities come in. They allow us to hone in specifically on the details and deliver customized responses to our users.

Read more

Make a Chatbot with IBM Watson Part 1

Image of Chatbot
I recently had an opportunity to play around with Watson Assistant on IBM Cloud. It was pretty fun to implement a simple chatbot from the user’s perspective. I didn’t really need to code anything to get the chatbot up and running. That would be something I want to do in the future. Once I get my feet wet with Machine Learning and Natural Language Processing libraries available on Python.

Read more

Managing Attention Leaks

If I need memory for something I don’t know the size of in C, I have to dynamically allocate it. malloc does this by allocating memory from the heap. Then I use a pointer to point to this block of memory. But there is no garbage collection in C. That means after I finish with it, I have to call free to deallocate the memory so it can be used for something else.

What happens when I just keep asking for memory without freeing it? Memory leaks. Over time, the program will hog all the memory until the system runs out of memory. When this happens, the whole program will crash.
Read more

Tackling the C Programming Language

I’m finally back from hiatus. It’s been a while since I wrote my last blog post. I’ll take some time in this post to share what I’ve learned during the time period. One of the thing I was always hesitant to approach while learning to program was C. This is because I had this image in my head that C is an extremely difficult language to learn. I remembered my friends told me that they hated writing C code because it is a low level language. They had to manually allocate memory, fiddling with pointers, and all the other good stuff C provided. Since I had time this summer, I decided to bite the bullet and finally sit down to learn C.
Read more