Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 04:48
    marcelomachado synchronize #334
  • Dec 04 05:19
    marcelomachado edited #334
  • Dec 04 03:09
    marcelomachado synchronize #334
  • Dec 04 02:47
    marcelomachado synchronize #334
  • Dec 03 23:29
    marcelomachado synchronize #334
  • Dec 02 04:17
    marcelomachado synchronize #334
  • Dec 02 02:08
    marcelomachado synchronize #334
  • Dec 01 17:57
    marcelomachado synchronize #334
  • Nov 30 19:18
    marcelomachado synchronize #334
  • Nov 30 18:01
    marcelomachado synchronize #334
  • Nov 30 17:17
    marcelomachado synchronize #334
  • Nov 29 20:10
    marcelomachado synchronize #334
  • Nov 29 19:15
    marcelomachado synchronize #334
  • Nov 26 06:58
    marcelomachado synchronize #334
  • Nov 22 21:54
    marcelomachado synchronize #334
  • Nov 22 17:23
    marcelomachado synchronize #334
  • Nov 22 17:20
    marcelomachado synchronize #334
  • Nov 22 06:27
    marcelomachado synchronize #334
  • Nov 22 06:26
    marcelomachado synchronize #334
  • Nov 22 06:22
    marcelomachado opened #334
Ifty Mohammad Rezwan
@imr165_twitter
Ignore my previous message please
Very newbie question here. I am working in collecting edge word of labels in conceptnet.
Ifty Mohammad Rezwan
@imr165_twitter
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
@imr165_twitter
I apologize it seems to be working now
AlexMikhalev
@AlexMikhalev
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
pyrator
@pyrator
Hi getting 500 error at the moment with https://api.conceptnet.io/c/en/example
{
"@context": [
"http://api.conceptnet.io/ld/conceptnet5.7/context.ld.json"
],
"error": {
"details": "Internal server error",
"status": 500
},
"version": "5.8.1"
}
4 replies
unxusr
@unxusr
same here @pyrator
L4RVIS
@L4RVIS

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
@loftusa
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
@amirouche
hello
I started thread at https://github.com/commonsense/conceptnet5/discussions/329 about me self-hosting a backward but scalable REST API
Alex Loftus
@loftusa

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
@mustafaalisaba
Hi there
Mustafa Ali-Saba
@mustafaalisaba
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?
Maksim
@MakC-Ukr
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
@mustafaalisaba
Hi @MakC-Ukr , maybe this may help you. https://github.com/commonsense/conceptnet5/wiki/URI-hierarchy
Vyacheslav Kim (Kane)
@kanekv
Is there any way to filter out results by language? E.g. I want to get only english synonyms
Vyacheslav Kim (Kane)
@kanekv
Also I don't understand how this would be possible:
{
  "@id": "/relatedness?node1=/c/en/cat&node2=/c/en/pet",
  "value": 0.583,
  "version": "5.8.1"
}
{
  "@id": "/relatedness?node1=/c/en/cat&node2=/c/en/humane_society",
  "value": 0.901,
  "version": "5.8.1"
}
2 replies
Alex Loftus
@loftusa

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?

4 replies
Mustafa Ali-Saba
@mustafaalisaba
@loftusa maybe on the paper "ConceptNet 5.5: An Open Multilingual Graph of General Knowledge" there is a section of evaluation of word relatedness
Mustafa Ali-Saba
@mustafaalisaba
it is recommended to install conceptnet locally?
Kai-Po, Chang
@KaiPoChang
The conceptnet seems to have 500 internal server error... when you would fix it ?
ROAM447
@ROAM447
@kanekv its because of this most likely
image.png

The conceptnet seems to have 500 internal server error... when you would fix it ?

I have the entire english part of the conceptnet semantic written in binary - if anyone needs it, you need to be able to decode it using python and the python module pickle

I could probably provide the decoder actually
Roberto Scotti
@scotti_r_gitlab
Hello. I just discovered this work and find it very interesting.
I searched for a word of my domain 'forest' and found also
https://conceptnet.io/c/en/forrest
To my understanding 'forrest' does not exist (see https://www.wordreference.com/enit/forrest)
Am I wrong or is this an error?
Many thanks, Roberto
3 replies
Marcelo Machado
@marcelomachado

Hello everyone,
I am developing a ConceptNet Datasource on the Triple Pattern Fragment Server (TPF). It allow us to make simple queries like the ones in the https://api.conceptnet.io/query API. But the coolest thing about having this datasource is that it makes it possible to use SPARQL queries using the Comunica query engine. The TPF is a RDF interface that by design handle the latency and downtime in the servers (problem reported here) by delegating greater complexity to the client side (see https://linkeddatafragments.org/).

Having said that, I'd like to ask two questions: (1) How difficult is it to add other parameters in the query API. For example, currently it is possible to filter using start to reference a node in the start field of an edge, as well as end and rel, but we cannot filter by, for instance, dataset and language fields. (2) Is it possible to know the total number of edges given a filter like the ones mentioned above (e.g., totalEdges: 5500)? If not, how difficult would it be to add that count since we have the pagination?

These features would help a lot in the development of the datasource and reduce the number of requests to the server.

Thank you very much in advance.

6 replies
ROAM447
@ROAM447
image.png
@scotti_r_gitlab this will be why
ROAM447
@ROAM447
image.png
@marcelomachado this is an excerpt from code. its essentially requests all of the edges for a node- to answer question 2, all you would have to do is then e.g.:
ROAM447
@ROAM447
len(edges)
this will give you the total number of edges (sorry i cant simplify i have school assignments ;( )
Marcelo Machado
@marcelomachado

@ROAM447

image.png

Where exactly is this code? From what I understand the query part is done here in this line: https://github.com/commonsense/conceptnet5/blob/fda1b39607ea6f07e41ddce22d9d5f8360ded581/conceptnet5/api.py#L244

A search is performed considering limit + 1 to capture the existence of more values. It doesn't have a query that captures all the edges (in fact it would be quite unoptimized). I'm looking for something that I do this count directly in the DB (probably here).

ROAM447
@ROAM447
ohk yeah i dont know how to do this
that was a section of my code that on a whole just compiled all of conceptnet's nodes and relations
Premtim Sa
@premsa
Hey guys, what is the go-to method for path finding or sub-graph construction between two arbitrary concepts in conceptnet?
Best Regards
Marcelo Machado
@marcelomachado
Hello everyone.
The last commit on ConceptNet Github was on September 07, 2021. Is the project still alive? What is the process to have a PR accepted?
Serendipity-zyf
@Serendipity-zyf
Hey guys, is there any links or ways to download ConceptNet 5.8 in form of csv ? The official only provided version 5.7 ?
Thanks!
Akarsh Shrivastava
@aakarshhh
Hello everyone.
I am very new to ConceptNet and and as great as it looks i wasn't able to find tutorials or enough examples to get started .
The problem statement Im working on is getting semantic similar sentences in my dataset , really looking for help .
Thanks in advance .