Skip to content

rezaBarzgar/NLP_assignment2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NLP_assignment2

This repository is for the second assignment of NLP course (COMP 8730 ). We evaluate n-gram language models on spell correction problem to see how they perform.

Setup

you need to download or clone the repository. You can use the code below to clone it.

 git clone https://github.com/rezaBarzgar/NLP_assignment2.git

install the required libraries by running the following code:

pip install -r requirements.txt

The last step of setup is installing pytrec_eval for the evaluation part

pip install pytrec-eval

run the project!

for runing the project and reproducing the results you can run the following codes:

cd /src
python run main.py

Results

The results are shown as the following plots

Horizental axis: 0 -> corpus is only news categories of brown, 14 -> corpus is the whole brown corpus

vertical: Success score

alt text alt text alt text alt text alt text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published