deeptype
deeptype copied to clipboard
FileNotFoundError: [Errno 2] No such file or directory: 'data/location_classification/classes.txt'
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'
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.