[ANN] easy-conceptnet for ubuntu 19.04

127 views
Skip to first unread message

Amirouche Boubekki

unread,
Sep 16, 2019, 6:14:58 AM9/16/19
to conceptnet-users
I am pleased to announce the immediate availability of easy-conceptnet 0.0.0 for ubuntu 19.04.

You can try it with the following command line dance:

git clone https://github.com/amirouche/easy-conceptnet/
cd easy
-conceptnet
wget https
://s3.amazonaws.com/conceptnet/downloads/2019/edges/conceptnet-assertions-5.7.0.csv.gz
gunzip
conceptnet-assertions-5.7.0.csv.gz
./easy-conceptnet index conceptnet-assertions-5.7.0.csv
./easy-conceptnet serve 8888

It is only tested with Ubuntu 19.04. The binaries do not work with Ubuntu 18.04.

The easiest way to install Ubuntu 19.04 without upgrading is via LXD [0]


Here is command line run using curl:

easy-conceptnet$ curl http://127.0.0.1:8888/api

 .-----.---.-.-----.--.--.
 |  -__|  _  |__ --|  |  |
 |_____|___._|_____|___  |          __               __
 .----.-----.-----.----.-----.-----|  |_.-----.-----|  |_
 |  __|  _  |     |  __|  -__|  _  |   _|     |  -__|   _|
 |____|_____|__|__|____|_____|   __|____|__|__|_____|____|
                             |__|

You know for conceptnet...

www: https://github.com/amirouche/easy-conceptnet/

version: 0.0.0

easy-conceptnet$ curl http://127.0.0.1:8888/api/lookup/c/en/concept
source    relation    target
/c/en/concept    /r/EtymologicallyDerivedFrom    /c/frm/concept
/c/en/concept    /r/EtymologicallyDerivedFrom    /c/la/conceptus
/c/en/concept    /r/EtymologicallyRelatedTo    /c/la/concipio
/c/en/concept    /r/ExternalURL    http://dbpedia.org/resource/Concept
/c/en/concept    /r/ExternalURL    http://en.wiktionary.org/wiki/concept
/c/en/concept    /r/ExternalURL    http://fr.wiktionary.org/wiki/concept
/c/en/concept    /r/ExternalURL    http://umbel.org/umbel/sc/Concept
/c/en/concept    /r/ExternalURL    http://wikidata.dbpedia.org/resource/Q151885
/c/en/concept    /r/IsA    /c/en/abstraction
/c/en/concept    /r/IsA    /c/en/idea
/c/en/concept    /r/RelatedTo    /c/en/idea
/c/en/concept    /r/Synonym    /c/en/concept

easy-conceptnet$ curl http://127.0.0.1:8888/api/reverse/c/en/concept
source    relation    target
/c/af/konsep/n    /r/RelatedTo    /c/en/concept
/c/an/concepto    /r/Synonym    /c/en/concept
/c/ar/تصور/n/wikt/en_2    /r/RelatedTo    /c/en/concept
/c/ar/رأي/n    /r/RelatedTo    /c/en/concept
/c/ar/معنى/n    /r/RelatedTo    /c/en/concept
/c/ar/مفهوم    /r/Synonym    /c/en/concept
/c/ast/conceutu/n    /r/RelatedTo    /c/en/concept
/c/az/anlayış    /r/Synonym    /c/en/concept
[...]


Comments, Feedback, Feature request welcome!

Amirouche Boubekki

unread,
Sep 16, 2019, 6:23:55 AM9/16/19
to conceptnet-users

Amirouche Boubekki

unread,
Sep 16, 2019, 1:47:45 PM9/16/19
to conceptnet-users


On Monday, September 16, 2019 at 12:23:55 PM UTC+2, Amirouche Boubekki wrote:

I added binaries for Ubuntu LTS aka. bionic 18.04.

Amirouche Boubekki

unread,
Sep 18, 2019, 6:59:30 AM9/18/19
to conceptnet-users
If there is strong interest (github stars, watchers etc...) I will improve it to support multiple threads,
add vectors support, improve the REST interface somehow and maybe fuzzy search / spell checker.

If you require a specific build for you Operating System of choice let me know, otherwise you can
always use LXD.

Andrew Dougherty

unread,
Sep 18, 2019, 12:40:23 PM9/18/19
to conceptn...@googlegroups.com
I'm definitely interested in this system.  I was wondering, the tar.gz is around 1GB - does it contain the full ConceptNet KB?

--
You received this message because you are subscribed to the Google Groups "conceptnet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conceptnet-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/conceptnet-users/e54bc12a-74d6-4dc8-b831-d1dccae06682%40googlegroups.com.


--
Andrew Dougherty
Independent A.I. Researcher
FRDCSA.org
(331) 684-7674
adou...@gmail.com

Amirouche Boubekki

unread,
Sep 18, 2019, 1:18:11 PM9/18/19
to conceptn...@googlegroups.com
Le mer. 18 sept. 2019 à 18:40, Andrew Dougherty <adou...@gmail.com> a écrit :
I'm definitely interested in this system.  I was wondering, the tar.gz is around 1GB - does it contain the full ConceptNet KB?

Yes and No. I does contain all the relations but only the part required to make the API work. Given the first assertion from concept 5.7 that is:

/a/[/r/Antonym/,/c/ab/агыруа/n/,/c/ab/аҧсуа/]   /r/Antonym      /c/ab/агыруа/n  /c/ab/аҧсуа     {"dataset": "/d/wiktionary/en", "license": "cc:by-sa/4.0", "sources": [{"contributor": "/s/resource/wiktionary/en", "process": "/s/process/wikiparsec/2"}], "weight": 1.0}

It only stores the following information:

/r/Antonym      /c/ab/агыруа/n  /c/ab/аҧсуа

This explains why the tar.gz is small.

Amirouche Boubekki

unread,
Sep 26, 2020, 11:28:01 AM9/26/20
to conceptnet-users
I am wondering what feature I could add. I plan to make a follow-up release. Any feedback on this?

I read lot of people struggle to setup their own server to query the data, there is no way around learning programming, but this might help get things done...
Reply all
Reply to author
Forward
0 new messages