Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
leolle opened this issue Aug 8, 2018 · 1 comment

Comments

@leolle
Copy link

leolle commented Aug 8, 2018

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants