deeptype icon indicating copy to clipboard operation
deeptype copied to clipboard

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

Open leolle opened this issue 6 years ago • 1 comments

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'

leolle avatar Aug 08 '18 08:08 leolle

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.

timomulder avatar Sep 04 '18 15:09 timomulder