Skip to main content


Showing posts with the label AI

AI for Everyone

You might have heard of a lot about AI, Machine learning, Data science, Deep learning, etc,... But, what exactly these terms mean and how is the connection between those. Here is my understanding:

There are two ideas of AI: - ANI (Artificial Narrow Intelligence): E.g., smart speaker, self-driving car and web search. - AGN (Artificial General Intelligence): do anything a human can do.
ANI is realistic and incredibly valuable. Though AGN is still too far away, and there is no need to unduly worry about it.
When talking about data in term of AI that means talking about dataset. There are several methods to get a dataset: - Manual labeling - Observing user behaviors - Observing behaviors of other things such as machine - Downloading dataset from a website or acquiring it from a partner.
Machine learning (ML) is a tool in AI. Supervised learning is a type of ML that learns A to B, or input to output mappings. Deep learning/Neural networks is a type of supervised learning which can maximize …

Creating a Chatbot with RiveScript in Java

Motivation"Artificial Intelligence (AI) is considered a major innovation that could disrupt many things. Some people even compare it to the Internet. A large investor firm predicted that some AI startups could become the next Apple, Google or Amazon within five years"
- Prof. John Vu, Carnegie Mellon University.

Using chatbots to support our daily tasks is super useful and interesting. In fact, "Jenkins CI, Jira Cloud, and Bitbucket" have been becoming must-have apps in Slack of my team these days.

There are some existing approaches for chatbots including pattern matching, algorithms, and neutral networks. RiveScript is a scripting language using "pattern matching" as a simple and powerful approach for building up a Chabot.
Architecture Actually, it was flexible to choose a programming language for the used Rivescript interpreter like Java, Go, Javascript, Python, and Perl. I went with Java.

Used Technologies and ToolsOracle JDK 1.8.0_151Apache Maven 3.5…