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
- Host: GitHub
- URL: https://github.com/abendayan/relation-extraction
- Owner: abendayan
- Created: 2018-01-15T09:51:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-24T12:02:10.000Z (over 8 years ago)
- Last Synced: 2025-03-02T08:33:22.690Z (over 1 year ago)
- Topics: nlp, relation-extraction, school-project
- Language: Python
- Size: 5.29 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
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