Basic Natural Language Processor
By:
Ahmad El-Baher 40000968
& Dylan Fernandes 40002559
- Load right python version
module load python/3.5.1
- In
Code
directorypython3.5 main_script.py
- Third language : Spanish, reffered to as
ot
orOTHER
in results
- Implementation of class in
Code/unigram.py
- Tests in
Tests/unigram_tests.py
- Implementation of class in
Code/bigram.py
- Tests in
Tests/bigram_tests.py
- Go to
Experiments
directory
- Creates output files of running bigram_prev with bigram_next on sentences
- Files used for comparison of performance
bigram_next.py
contains class with bigram_next implementationmain_bigram_next_exp.py
contains logic for file IO to compare both algorithms- Output will be placed in
Output/BigramExperiment/
- tests for class in
./Tests/bigram_next_tests.py
latin_exp.py
contains and executes both parts of the experiment- The first part parses the ten Latin sentences found in
Datasets/latin_sentences.txt
without training Latin and outputs the results in the folderOutput/no_latin_expr/
- The second part parses those same sentences, but after having trained Latin unigram and bigram models and outputs the results in the folder
Output/latin_expr/
- Sentences: Located in
Output/main
- Models: Located in
Output/main/model
- Located in
Trained_models