conceptnetter
This code provides an interface for ConceptNet 5 in Python.
Requirements
A copy of ConceptNet 5 as a comma-separated values file (.csv) is required. This is available here.
Move the ConceptNet data folder to the conceptnetter directory and run the following Python code in the main folder:
import conceptnetter.conceptNetter as cn
c = cn.ConceptNetter()
c.create_english_CSV_file()
This will truncate the data to only use the English langauge assertions found in the ConceptNet 5 database.
Usage
This code is set up to run in Python. Example commands are below.
import conceptnetter.conceptNetter as cn
c = cn.ConceptNetter()
c.look_up_word('dog')
c.get_parts('mailbox')
c.get_related_words('door')
c.get_hypernyms('door')