loading wikidata id -> index
done
/usr/local/lib/python3.5/dist-packages/wikidata_linker_utils/type_collection.py:367: UserWarning: Node 'Q21886162' under `bad_node_pair` is not a known wikidata id.
oel
Traceback (most recent call last):
File "learning/evaluate_learnability.py", line 297, in <module>
main()
File "learning/evaluate_learnability.py", line 251, in main
proposal_sets = get_proposal_sets(collection, article_ids, args.seed)
File "learning/evaluate_learnability.py", line 171, in get_proposal_sets
relation = collection.relation("category_link")
File "/usr/local/lib/python3.5/dist-packages/wikidata_linker_utils/type_collection.py", line 112, in relation
print('load %r (%r)' % (name, self.wikidata_names2prop_names[name],))
KeyError: 'category_link'
I ran this:
python3 learning/evaluate_learnability.py --dataset sample_data.tsv --out report.json --wikidata ${DATA_DIR}wikidata/
and got KeyError message.
Before I ran it, I excuted these commands:
How to run learning/evaluate_learnability.py correctly?