COMP551--Assignment-2- Language Classification

Prerequisites

You need Python 3+ or later to run the algorithms. You can have multiple Python versions (2.x and 3.x) installed on the same system without problems.

In Ubuntu, Mint and Debian you can install Python 3 like this:

$ sudo apt-get install python3 python3-pip

For other Linux flavors, OS X and Windows, packages are available at

http://www.python.org/getit/

For the individual algorithms , specific prerequisites and various modules to be installed are mentioned below:

k Nearest neighbour

pip install sklearn csv re math numpy pandas string operator time tqdm

Naive Bayes

pip install __future__ csv re langdetect collections random

Neural Network

pip install sklearn csv re math numpy pandas tensorflow keras

N Gram

pip install nltk re numpy string csv

IMPORTANT need to copy and paste the CSV file into each folder to make it work