An open API service indexing awesome lists of open source software.

https://github.com/abendayan/relation-extraction

Relation Extraction
https://github.com/abendayan/relation-extraction

nlp relation-extraction school-project

Last synced: 3 days ago
JSON representation

Relation Extraction

Awesome Lists containing this project

README

          

#### Relation Extraction
To train the model, run learn.py (you can use the already trained model model.pkl & feature.pkl)
Please use the .txt file
python learn.py CORPUS.TRAIN.txt TRAIN.annotations

To extract the relations, run extract.py:
Please use the .txt file
python extract.py CORPUS.TRAIN.txt train.annotations

It will write in train.annotations the extracted relations

To evaluate, run eval.py:
python eval.py TRAIN.annotations train.annotations
It follow the format
python eval.py gold pred