Hello people!
Since the conceptnet server is often down, I made a simple docker installation setup that you can run locally.
Check out the repo: https://github.com/tae898/conceptnet5
Check out the video tutorial: https://youtu.be/UAM1XwbpOZI
Feel free to ask me questions.
Hello people!
Since the conceptnet server is often down, I made a simple docker installation setup that you can run locally.Check out the repo: https://github.com/tae898/conceptnet5
Check out the video tutorial: https://youtu.be/UAM1XwbpOZIFeel free to ask me questions.
Thanks!
conceptnet_api = f'{conceptlite_lite_api_url}/relatedness?node1={node1}&node2={node2}'
req = requests.get(conceptnet_api).json()
hi, so I have this:
object = loadJSON('https://api.conceptnet.io/related/c/en/hotel?limit=10&filter=/c/en');
now how do I get the different objects within this json file? like the third id wich is ski-lodge?
There is some trouble when trying to pull relatedness from the server. In Python code:
uri = f"http://api.conceptnet.io/relatedness?node1=/c/en/{node1}&node2=/c/en/{node2}"
r = requests.get(uri)
json = r.json()
relatedness = json["value"]
For some values of [node1, node2], a JSONDecodeError: Expecting value: line 1 column 1 (char 0)
is thrown.
However, when I try the same code on the same nodes repeatedly, it'll start working after a few server pings. Meaning there's something wrong with the server.
Hi all, I'm trying to get a better sense for what relatedness actually means (e.g., "/relatedness?node1=/c/en/cat&node2=/c/en/pet" returns a value of 0.583, but I'm not sure where that value comes from).
Is there a paper I can read somewhere that gives a clear definition?