ImportError: No module named secrets
SeekPoint opened this issue · 1 comments
SeekPoint commented
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 commented
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'