Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Sep 23 04:11
    garyphilip opened #332
  • Aug 23 20:26
    Rayckey closed #331
  • Aug 23 20:26
    Rayckey commented #331
  • Aug 23 17:14
    rspeer commented #331
  • Aug 23 14:35
    masterparser commented #331
  • Aug 21 08:44
    KaiPoChang commented #331
  • Aug 21 04:17
    Rayckey opened #331
  • Aug 21 00:16
    Rayckey commented #306
  • Jul 18 23:27
    mjgiancola edited #330
  • Jul 18 23:27
    mjgiancola opened #330
  • Jun 04 16:45
    rspeer commented #327
  • Jun 03 14:32
    rspeer commented #327
  • Jun 03 12:03
    tae898 commented #317
  • Jun 03 02:44
    ghamzak commented #327
  • Jun 03 00:22
    basels commented #317
  • Jun 03 00:15
    basels commented #323
  • Jun 02 13:28
    Lejla1979 commented #327
  • May 30 15:09
    TaichiY496 commented #306
  • May 30 08:40
    shivamag125 opened #327
  • May 28 08:46
    way151 commented #316
Does anyone know of a data source that can tell you the approximate or average dimensions of things? For example, I'd love to see something like "chair" also say "has an average height of about 1m, and an average width of about 0.5m."
I want to know whether the npy file in https://csr.s3-us-west-1.amazonaws.com/tzw.ent.npy uses one-dimensional embedding and glove to initialize some English entities? How is it built, if I want to build a similar npy file, how should I do it?
Ilya Lasy
Hello everyone! Is there any implementation of concept extracting from sentence based on Conceptnet API, or I have to write it from scratch ? :D
4 replies
Gwen Rehrig

Hi all, I'm getting measures of semantic similarity between two English words from ConceptNet for a project I'm working on, and the values I get from the ConceptNet API (using the 'rel' query, e.g., https://api.conceptnet.io/relatedness?node1=/c/en/invaluable&node2=/c/en/unvaluable) differ from those I get from the raw Numberbatch embeddings (with no further tuning) by loading the data in word2vec format via gensim.models.KeyedVectors (per the example here: https://www.kaggle.com/danofer/poetry2vec-word-embeddings) and the .wv.similarity method. Here's an example of the code I'm using:

from gensim.models import KeyedVectors
model = KeyedVectors.load_word2vec_format('numberbatch-en-19.08.txt.gz',binary=False,unicode_errors='ignore',limit=800000)

In some cases the difference is clearly just a matter of rounding (the API queries round to maybe 3 decimal places, in others it's more substantial. In the example pair "invaluable" and "unvaluable", ConceptNet's API gives me a relatedness of 0.455, and model.wv.similarity returns 0.251. I would get all of the comparisons from just one source and call it a day, but unfortunately it seems some of the words I'm comparing are not accessible via the API (or, at least, I haven't discovered a way to access them: for example, words or phrases that contain apostrophes).

Are the underlying data different between these two sources? Are the functions not equivalent? I'm new to word2vec so perhaps I'm using that wrong. Any advice would be appreciated. Thanks!

Hey, is there an online api that allows users to use the random query function ? https://github.com/commonsense/conceptnet5/blob/master/conceptnet5/db/query.py#L200
Hey, just trying to wrap my head around this. Is this an extension of the OpenCyc project or is does this have a different goal and happens to use OpenCyc as a foundation?
Zhanwen Chen
Hey guys. The web app is throwing 500s now: https://conceptnet.io/c/en/chair
Zhanwen Chen
Btw, I managed to build and deploy successfully on my end. If anyone needs help just ping me
5 replies
I'm using this API to build the MCQ. As per my requirement I created the URL as "http://api.conceptnet.io/query?node=/c/en/%s/n&rel=/r/PartOf&start=/c/en/%s&limit=5" but it's throwing 500 error. Can anyone confirm is it working on your system or not? because Just want to confirm is this URL is correct or not.
1 reply
The app is down for sometime, any news about when it will be up and working again?
Zhanwen Chen
Alternatively, there's a CSV for all the pre-built edges (assertions): https://github.com/commonsense/conceptnet5/wiki/Downloads. It's only 475MB
Zhanwen Chen
Btw the CSV is tab separated without header. It's huge so I suggest using pandas like df = pd.read_csv(csv_fname, delimiter='\t', header=None)
Hello! I meet the same problem that the server is down. Could anyone please be so kind to tell what's going on & will the server be repaired in a few days? Because I am conducting an experiment for my school work and really hope to take ConceptNet as an important comparison benchmark. Thanks a lot!
Motoki Yatsu
Is public Web API under maintenance? I can see a concept through Web browsers, but JSON-LD API is not working.
It always turns 500 status code.
Motoki Yatsu
It's nice to see you back!
I am new to using conceptnet. Is there predefined embedding that covers all the ConceptNet entries? I tried Numberbatch, but it seems it does not cover all the entries.
Taewoon Kim

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.

Amirouche Amazigh BOUBEKKI

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.


@tae898 by the way, I do not have the commit bit so I can not accept your pull-request.
Taewoon Kim
@amirouche welcome! alright then is there someone else who can take care of the PRs?
Amirouche Amazigh BOUBEKKI
apparantly they are offline.
J Boyan
I'm curious why some common proper nouns like 'bezos' are missing from the word vector embeddings and conceptnet altogether? I thought dbpedia was an input source. https://conceptnet.io/c/en/bezos
Hi ! I want to enrich the audioset ontology with the help of conceptnet? Can anybody help me/guide me how can i do that?
And if i can, what all tools that are available that will be useful for me!
Thankyou in advance
Yonatan Bitton
Do someone know how can I calculate relatedness fast?
For example:
I currently use the python API:
conceptnet_api = f'{conceptlite_lite_api_url}/relatedness?node1={node1}&node2={node2}'
req = requests.get(conceptnet_api).json()
Amirouche Amazigh BOUBEKKI
@rspeer is conceptnet maintenance still on your agenda given you changed job ?
Ilia Sucholutsky
What's the proper strategy for combining multiple word vectors? For example, if I want to compare how similar two sets of words are, what's the right way to use CNNB to do this?
Hi all! I'm new to conceptnet, and i was trying to find different types of filters to use for the api. I specifically need synonyms and a more difficult to explain one. On the normal website if you type for instance, hello, then it will give you a list of what hello is a type of- e.g. greeting, airline, greeting that people sometimes use - Is there a filter for this?
Ifty Mohammad Rezwan
Very newbie question here. I am working in collecting edge word of labels in conceptnet.
Ignore my previous message please
Very newbie question here. I am working in collecting edge word of labels in conceptnet.
Ifty Mohammad Rezwan
Very newbie question here. I am working in collecting edge word of labels in conceptnet
As I was saying while querying, I manage to get the edges for single words in the api like for example when I query "albatross" like this "https://api.conceptnet.io/c/en/albatross" I get a good result with all the edges. But when I query "black footed albatross" like "https://api.conceptnet.io/c/en/black%20footed%20albatross" or "https://api.conceptnet.io/c/en/black_footed_albatross". I get the result that it is not a node in conceptnet. But what's funny is when I query "black footed albatross" on concepnet.io as "https://conceptnet.io/c/en/black_footed_albatross", I get synonym edges. There's english synonyms present too. So, I wondering If I was something here? Is the api limited in it's support for conceptnet or Am I missing something here. Thank You.
Ifty Mohammad Rezwan
I apologize it seems to be working now
Hello all, conceptnet5 deployment scripts rely on docker-compose files but there are no docker-compose.yml in the current repository https://github.com/commonsense/conceptnet5/blob/master/scripts/conceptnet.service, how has anyone managed to re-deploy conceptnet on their own servers?
26 replies
Hi getting 500 error at the moment with https://api.conceptnet.io/c/en/example
"@context": [
"error": {
"details": "Internal server error",
"status": 500
"version": "5.8.1"
4 replies
same here @pyrator

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?

Alex Loftus
Hi all!
I'm super new to conceptnet. I'm trying to find an easy way to get some measure of semantic similarity between two words (e.g., it'd be 1 if the two words are the same, close to 1 if the two words are synonyms, and close to 0 if the two words were completely unrelated). Is there an easy way to do this?
Amirouche Amazigh BOUBEKKI
I started thread at https://github.com/commonsense/conceptnet5/discussions/329 about me self-hosting a backward but scalable REST API
Alex Loftus

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.

Mustafa Ali-Saba
Hi there
Mustafa Ali-Saba
I am starting with ConceptNet5 by following the tutorial on github (https://github.com/commonsense/conceptnet5/wiki/API). I am understanding the communication through the API and the JSON-LD structure. My question is: are there any tutorials to experiment with conceptnet5, like a practical textbook or something?
Hi, is there any specific way I can only get Antonyms from an API call ?
For e..g for this API call : "https://api.conceptnet.io/c/en/like?format=json" there are more than 1000 results, so checking for those is a waste of resources
Mustafa Ali-Saba
Hi @MakC-Ukr , maybe this may help you. https://github.com/commonsense/conceptnet5/wiki/URI-hierarchy