R Package For Word Prediction

Wordpredictor is a R package for developing and evaluating n-gram models. It provides methods for data analysis, data cleaning, data sampling, converting text to tokens, generating n-gram transition probabilities, generating n-gram models and evaluating n-gram model performance.

Read

Using N-gram models for Word Prediction

N-gram models have applications in many areas such as spell checking, biological sequence analysis, speech recognition, word prediction and more. In this article I will provide an overview of n-gram models.

Read

R6 class for processing large text files

In this article I will describe a R6 class that I had developed for processing large text files.

Read

Solving N Diagonal Problem

In the N Diagonal problem, we have a board containing NxN squares. Each square can have 2 diagonals, but the diagonals of neighboring squares should not intersect. A square can have three possible states. Either empty, a left diagonal or a right diagonal. We need to find out if it is possible to have X number of diagonals.

Read

Expressing numbers as a sum of fives and sevens

I recently took a course on Coursera titled: Mathematical Thinking in Computer Science. As part of the course, we were asked to solve a problem that involved expressing a number as a sum of fives and sevens. This problem is related to recursion. In this article I will describe the problem and my attempt at solving it.

Read