Skip to content

Latest commit

 

History

History
9 lines (8 loc) · 536 Bytes

README.md

File metadata and controls

9 lines (8 loc) · 536 Bytes

NLP using the n-gram model

This program uses basic NLP to determine the language of a mystery text file. You are expected to provide as a command-line argument, the path of a folder (similiar to this), that contains subdirectories with files in a specific language. These subdirectories are used to train a model, which then is used to determine the language of the mystery.txt file.

To run the code

cd src
javac Main.java
java Main.java <YOUR_FOLDER_PATH>