About

Captain Commando is a Natural Language Processing project where an AI agent takes a set of instructions as an input and turns it into actions. This form of interaction focuses in converting text into actual action for the game. To achieve this, the agent needs to learn a what a proper sentence structure really is. Once the agent understands these criteria, it is important for it to break down the sentence and be able to classify the verb, adjective and noun. This classification is important in order for out agent to distinguish the type of action it should take, such as jumping, walking, cutting and etc. Same concept applies for the noun, the agent needs to know the difference between a red cube and a green cube or maybe the difference between a tree and a pig. Furthermore, most of the actions will involve moving from place to place in the destination. To achieve this, the agent will determine the shortest path from its position to the object is trying to reach using Dijkstra’s algorithm.

Interactions

The agent is able to classify the item as a redstone_block and it also returns the list of moves for the shorest path. Notice how the agent was able to understand that the red stone was the same as the redstone_block.

Capable of knowing when he is in danger of falling.

Implementation

Language: Python version 2.7

1. Dijkstra’s algorithm

The algorithm is used to find the shorest path to items.

2. Naive Bayes Classifier

Naive Bayes Classifier is used to classify items in the enviroment and to determine if the text input is a question, statement or command. The learner trains from a list of data that is generated by the programmer.

3. Part of Speech Extractor

This module focuses on extracting the verb, adjective, and the noun from a sentence.

Links to tools for Natural Language Processing