openai / deeptype

Code for the paper "DeepType: Multilingual Entity Linking by Neural Type System Evolution"
https://arxiv.org/abs/1802.01021
Other
647 stars 147 forks source link

FileNotFoundError: [Errno 2] No such file or directory: 'data/location_classification/classes.txt' #43

Open leolle opened 5 years ago

leolle commented 5 years ago

Hi, I have an issue when To use the saved graph projection on wikipedia data to test out how discriminative this classification is (Oracle performance) (edit the config file to make changes to the classification used):

export DATA_DIR=data/
python extraction/evaluate_type_system.py extraction/configs/en_disambiguator_config_export_small.json --relative_to ${DATA_DIR}

FileNotFoundError: [Errno 2] No such file or directory: 'data/location_classification/classes.txt'

timomulder commented 5 years ago

I think you need to run: python3 extraction/project_graph.py ${DATA_DIR}wikidata/ extraction/classifiers/location_classifier.py --export_classification data/location_classification

python3 extraction/project_graph.py ${DATA_DIR}wikidata/ extraction/classifiers/country_classifier.py --export_classification data/country_classification

and

python3 extraction/project_graph.py ${DATA_DIR}wikidata/ extraction/classifiers/time_classifier.py --export_classification data/time_classification as well as the type classifier to create them. Alternatively removing these classifications from the config file might help.