/anlp_ddi_project

Drug-drug-interaction classification project for the Advanced Natural Language Processing (ANLP) course 2017 at UPC

Primary LanguagePython

ANLP project: DDI classification

installation

  • the DDI corpus has to be extracted to the folder DDICorpus
  • the freeling.py and _freeling.so have to be moved to the folder lib

Task 1

baseline

run the following program:
python3 multiclass_ngram_naive_bayes2.py --baseline

naive bayes approach

run the following program:
python3 multiclass_ngram_naive_bayes2.py

Task 2

SVM approach

run the following program:
python3 SVM_evaluation.py

Naive Bayes approach

for the Naive Bayes model, run:
python3 task2_naive_bayes.py