Open korymath opened 3 years ago
Well covered in our tests/ suite:
FAILED tests/test_conceptnet.py::ConceptNetTest::test_conceptnet_multiword - KeyError: 'edges'
FAILED tests/test_conceptnet.py::ConceptNetTest::test_conceptnet_only_english - KeyError: 'edges'
FAILED tests/test_conceptnet.py::ConceptNetTest::test_conceptnet_standard - KeyError: 'edges'
FAILED tests/test_specific_text_generators.py::SpecificTextGeneratorTest::test_talk_title_generator - KeyError: 'edges'
FAILED tests/test_talkgenerator.py::TestTalkGenerator::test_all_slide_generators - KeyError: 'edges'
From chat:
Maybe we can use some better backup generators in case conceptnet keeps erroring, instead of now just using the default topic (e.g. using wikidata links, or wordnet relations or something like that)
https://api.conceptnet.io/c/en/lap?limit=10 This is the issue, the page itself is giving a 500 Here is their live issue: https://github.com/commonsense/conceptnet5/issues/313
I followed these instructions, and had a conceptnet up in 5 minutes. https://github.com/commonsense/conceptnet5/wiki/Running-your-own-copy
Then I ran the simple test here: https://github.com/commonsense/conceptnet5/wiki/API
import requests
obj = requests.get('http://18.215.180.62/c/en/example').json()