Giter Club home page Giter Club logo

atomspace-restful's Introduction

OpenCog

CircleCI

This repo is no longer maintained! Please use the following, instead:

Obsolete! As of 2021, the most interesting and actively maintained parts of this git repo have been split off into their own distinct git repos. What is left here is a mish-mash of unmatained stuff that is in the process of bit-rotting. Some unit tests fail. Some unit tests won't run. Some code won't compile. Perhaps there's some good stuff in here. Perhaps it can be brought back to life and used for something or other. However... for the most part, it is obsolete.


This git repository contains the "OpenCog Framework", which has served as a (scientific, technical) laboratory for researching, exploring and learning how to integrate AI algorithms and systems into humanoid robotic systems. Most of the activity within this particular repo has focused on integrating natural language chat, common-sense reasoning, assorted learning algorithms, and motor control of humanoid robots.

A stated goal of the OpenCog project is to develop artificial general intelligence (AGI) systems. This is all and well; however, what can be found here, in this particular repo, is very far from that. The code here really is ... a laboratory for integrating various types of AI systems. As such, it is a compilation of several decades of work by a large and varying collection of students, researchers, professors and software engineers. As a laboratory, it is filled with all sorts of devices in varying states of working order, from well-polished to mostly-broken.

See also:

  • ROCCA - Rational OpenCog Controlled Agent. This is a different assemblage of assorted OpenCog components, so that they operate within Minecraft, in the OpenAI Gym. The focus is on learning with the pattern miner, and reasoning with PLN.

Overview

Most of the basic components used in OpenCog are distributed across various git repos, (mostly) grouped under https://github.com/opencog

This git repository contains a crude natural language processing pipeline, several embodied chatbots, and some control/action-selection mechanisms. These include:

  • Ghost, a Chatscript-compatible chatbot with additional capabilities for accepting visual sensory input, and for controlling robot movements.

  • OpenPsi, a model of psychological states. Its currently a mashup of two unrelated ideas: a generic rule-class action-selection and planning system, and a model of human psychological states. An open to-do item is to untangle these two.

  • An assortment of natural language processing subsystems, including:

    • Natural language generation (for expressing thoughts as sentences).
    • Natural language input (for reading and hearing).
    • Relex2logic, converting natural language to logic expressions.
    • Assorted chatbots, some of which are embodied.
    • A Lojban tool.

Prerequisites

To build and run the system here, the packages listed below are required. Users of Ubuntu may use the dependency installer from the /opencog/octool repository. Docker containers with OpenCog preconfigured can be found in the opencog/docker repo.

cogutil

Common OpenCog C++ utilities. https://github.com/opencog/cogutil It uses exactly the same build procedure as this package. Be sure to sudo make install at the end.

atomspace

OpenCog Atomspace, a sophisticated (hyper-)graph database. https://github.com/opencog/atomspace It uses exactly the same build procedure as this package. Be sure to sudo make install at the end.

cogserver

OpenCog CogServer Network Server. https://github.com/opencog/cogserver It uses exactly the same build procedure as this package. Be sure to sudo make install at the end.

attention

OpenCog Attention Allocation subsystem. https://github.com/opencog/attention It uses exactly the same build procedure as this package. Be sure to sudo make install at the end.

URE

OpenCog Unified Rule Engine. https://github.com/opencog/ure Required for PLN It uses exactly the same build procedure as this package. Be sure to sudo make install at the end.

pln

OpenCog Probabilistic Logic Networks reasoning system. https://github.com/opencog/pln It uses exactly the same build procedure as this package. Be sure to sudo make install at the end.

spacetime

OpenCog Spacetime Server - locations of objects in space and time. https://github.com/opencog/spacetime It uses exactly the same build procedure as this package. Be sure to sudo make install at the end.

ros-behavior-scripting

Visual and auditory senses, robot motor control. https://github.com/opencog/ros-behavior-scripting It uses exactly the same build procedure as this package. Be sure to sudo make install at the end.

lg-atomese

Natural Language Parser for English, Russian, other languages. Required for natural language generation, and the chatbot. https://github.com/opencog/lg-atomese It uses exactly the same build procedure as this package. Be sure to sudo make install at the end.

Building OpenCog

Perform the following steps at the shell prompt:

    cd to project root dir
    mkdir build
    cd build
    cmake ..
    make

Libraries will be built into subdirectories within build, mirroring the structure of the source directory root.

Unit tests

To build and run the unit tests, from the ./build directory enter (after building opencog as above):

    make test

atomspace-restful's People

Contributors

alex-van-der-peet avatar amebel avatar chenesan avatar czhedu avatar edajade avatar eddiemonroe avatar ferrouswheel avatar githart avatar hedayat avatar huangdeheng avatar inflector avatar keyvan-m-sadeghi avatar kim135797531 avatar kizzobot avatar leungmanhin avatar linas avatar misgeatgit avatar ngeiswei avatar prateeksaxena2809 avatar rekino avatar roman-khimov avatar rtreutlein avatar sebastianruder avatar shujingke avatar themixed avatar tnick avatar tpsjr7 avatar williampma avatar xiaohui avatar yantrabuddhi avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

atomspace-restful's Issues

cmake can't find tbb on ubuntu 22.04

i've installed libtbb-dev

$ dpkg -L libtbb-dev
...
/usr/include/oneapi/tbb/version.h
/usr/include/oneapi/tbb.h
/usr/include/tbb
/usr/include/tbb/blocked_range.h
/usr/include/tbb/blocked_range2d.h
...

but cmake can't find it:

$ cmake ..
...
-- Python destination dir found: /usr/local/lib/python3.10/dist-packages
-- Python install dir: /usr/local/lib/python3.10/dist-packages/opencog
-- Using nosetests executable /usr/bin/nosetests3
-- Looked for Threading Building Blocks in /opt/intel/tbb;/usr/local/include;/usr/include
-- Intel TBB (Threaded Building Blocks) was not found; the AtomSpace Publisher module will not be built. Installation instructions: https://www.threadingbuildingblocks.org/download
-- Found ZeroMQ library: /usr/lib/x86_64-linux-gnu/libzmq.so
-- Detected ZeroMQ version number: 4.3.4
-- ZeroMQ was found.
-- AttentionBank found.

Building for Ubuntu 22.04 LTS

The following components will be built:
-----------------------------------------------
   Doxygen       - Code documentation.
   Python tests  - Python bindings nose tests.
   Unit tests    - Unit tests.

The following components WILL NOT be built:
-----------------------------------------------
   REST Events   - REST Atomspace Event Publisher module.

any ideas about how to fix?

ubuntu 22.04 make error

after changing CMakeLists.txt to point to directly to /usr/include/tbb, cmake is successful but hits an error in the tbb library (package version 2021.5.0-7ubuntu2)

In file included from /home/mozi/oc/atomspace-restful/opencog/events/AtomSpacePublisherModule.cc:48:
/home/mozi/oc/atomspace-restful/opencog/events/AtomSpacePublisherModule.h: At global scope:
/home/mozi/oc/atomspace-restful/opencog/events/AtomSpacePublisherModule.h:61:38: error: expected class-name before ‘{’ token
   61 | class lambda_task : public tbb::task {
      |                                      ^
/home/mozi/oc/atomspace-restful/opencog/events/AtomSpacePublisherModule.h:63:10: error: ‘task’ in namespace ‘tbb’ does not name a type
   63 |     tbb::task* execute() {
      |          ^~~~
In file included from /usr/include/tbb/task.h:17,
                 from /home/mozi/oc/atomspace-restful/opencog/events/AtomSpacePublisherModule.cc:31:
/usr/include/oneapi/tbb/task.h:26:11: note: ‘tbb::v1::task’ declared here
   26 | namespace task {
      |           ^~~~
In file included from /home/mozi/oc/atomspace-restful/opencog/events/AtomSpacePublisherModule.cc:48:
/home/mozi/oc/atomspace-restful/opencog/events/AtomSpacePublisherModule.h: In function ‘void tbb_enqueue_lambda(const F&)’:
/home/mozi/oc/atomspace-restful/opencog/events/AtomSpacePublisherModule.h:73:16: error: ‘enqueue’ is not a member of ‘tbb::v1::task’
   73 |     tbb::task::enqueue(*new(tbb::task::allocate_root()) lambda_task<F>(f));
      |                ^~~~~~~
/home/mozi/oc/atomspace-restful/opencog/events/AtomSpacePublisherModule.h:73:40: error: ‘allocate_root’ is not a member of ‘tbb::v1::task’
   73 |     tbb::task::enqueue(*new(tbb::task::allocate_root()) lambda_task<F>(f));
      |                                        ^~~~~~~~~~~~~
/home/mozi/oc/atomspace-restful/opencog/events/AtomSpacePublisherModule.cc: In member function ‘Json::Value opencog::AtomSpacePublisherModule::atomToJSON(opencog::Handle)’:
/home/mozi/oc/atomspace-restful/opencog/events/AtomSpacePublisherModule.cc:196:40: error: cannot convert ‘std::back_insert_iterator<std::vector<opencog::Handle> >’ to ‘const opencog::AtomSpace*’
  196 |         h->getIncomingSet(back_inserter(incomingHandles));
      |                           ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
      |                                        |
      |                                        std::back_insert_iterator<std::vector<opencog::Handle> >

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.