Code Monkey home page Code Monkey logo

conceptnet5's Introduction

ConceptNet aims to give computers access to common-sense knowledge, the kind of information that ordinary people know but usually leave unstated.

This Python package contains a toolset for building the ConceptNet 5 knowledge graph, possibly with your own custom data, and it serves the HTML interface and JSON Web API for it.

You don't need this package to simply access ConceptNet 5; see http://conceptnet.io for more information and a browsable Web interface.

Further documentation is available on the Wiki: https://github.com/commonsense/conceptnet5/wiki

Licensing and attribution appear in LICENSE.txt and DATA-CREDITS.txt.

Discussion groups

If you're interested in using ConceptNet, please join the conceptnet-users Google group, for questions and occasional announcements: http://groups.google.com/group/conceptnet-users?hl=en

For real-time discussion, ConceptNet also has a chat channel on Gitter: https://gitter.im/commonsense/conceptnet5

System requirements

To be able to run all steps of the ConceptNet build process, you'll need:

  • Python 3.4 or later
  • A Python environment where NumPy and SciPy can be installed, or already are installed
  • Standard GNU command-line tools such as sort and uniq
  • libhdf5 for reading and writing matrices of data
  • PostgreSQL 9.5 or later, with a database named conceptnet5 that you can write to
  • The CONCEPTNET_DB_USER, CONCEPTNET_DB_PASSWORD, and optionally CONCEPTNET_DB_HOSTNAME environment variables should be set so that you can connect to the database

These can be set up automatically within a container, using Docker Compose; see the Docker instructions. We highly recommend using Docker Compose if you want to serve the Web API locally.

Installing and building ConceptNet

To install this package, run:

python3 setup.py develop

To build all the data from raw data, run:

snakemake -j 8 --resources 'ram=16' all

(-j 8 says to run 8 processes of Snakemake in parallel, and ram=16 constraints the processes that run simultaneously so that they should require around 16 GB of RAM.)

To build or download only the data necessary to run the Web service:

snakemake -j 8 webdata

To reproduce an evaluation that shows the strong performance of the ConceptNet Numberbatch word embeddings:

snakemake evaluation

To start over when something goes wrong or when the code has changed:

snakemake clean

conceptnet5's People

Contributors

jlowryduda avatar joshua-chin avatar sheyvaert avatar waruts avatar ylkuo avatar jvarley avatar fcrimins avatar dant86 avatar pdworzynski avatar vihari avatar

Watchers

jm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.