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

ImportError: No module named secrets #89

Open
SeekPoint opened this issue Aug 22, 2018 · 1 comment
Open

ImportError: No module named secrets #89

SeekPoint opened this issue Aug 22, 2018 · 1 comment

Comments

@SeekPoint
Copy link

mldl@ub1604:~/ub16_prj/fact-extractor$ make unsupervised-run

you need to run extract-sentences-* before

mkdir -p ./workspace-it/unsupervised/linked
python lib/entity_linking.py --debug -d -c 0.01 twm
./workspace-it/sentences ./workspace-it/unsupervised/linked
Traceback (most recent call last):
File "lib/entity_linking.py", line 16, in
import secrets
ImportError: No module named secrets
Makefile:190: recipe for target 'unsupervised-run' failed
make: *** [unsupervised-run] Error 1
mldl@ub1604:~/ub16_prj/fact-extractor$

@e-dorigatti
Copy link
Contributor

e-dorigatti commented Sep 1, 2018

From the README:

  • Put your API credentials into a new file lib/secrets.py as follows:
# For The Wiki Machine
TWM_URL = 'your service URL'
TWM_APPID = 'your app ID'
TWM_APPKEY = 'your app key'

# For Dandelion API
NEX_URL = 'https://api.dandelion.eu/datatxt/nex/v1'
NEX_APPID = 'your app ID'
NEX_APPKEY = 'your app key'

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