Getting started on some minor bugs on OpenCog. Preferably NLP Tasks

100 views
Skip to first unread message

Apil Tamang

unread,
Sep 26, 2016, 5:01:37 PM9/26/16
to opencog
Hey All,
I've been reading about the OpenCog architecture for a while, and mainly from Ben's volumes (I & II) on the system. It is very interesting, and although I'm far from having digested it all completely, I guess this is a good time as any to actually get started hands-on. My interests are particularly on the NLP facets of the project. 

About myself: I'm just a regular software developer moderately versed in JAVA. I dabbled in C++ a little in my school years. I've got a book in C++ I plan to peruse through while going through this. I am not a terribly brilliant person, but I've always adored physics and mathematics. I got a bachelors in these, and two masters subsequently in the engineering. Thus, I have a fair amount of experience doing core research. In some way, that's what I envision of myself as an OpenCog member in the far (far) future.

So, towards that purpose, how can I best get started? Is there preferably some  docker image that I need to boot? There're just so many sub-projects on github on opencog, it's a little mindnumbing. Also, is there someone who can best mentor me for a little while? Again, I'd love to get started with some minor tasks, preferably in the NLP arena. However, I'm fairly open to any opportunities.

Thanks very much in advance..

Linas Vepstas

unread,
Sep 26, 2016, 5:15:37 PM9/26/16
to opencog
There is a docker container in the docker repository. You might have the most fun, however, in getting the hansonrobotics/HEAD repo working.  This integrates chat with a 3D robot head.

--linas

--
You received this message because you are subscribed to the Google Groups "opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencog+unsubscribe@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/f51b4e21-e24d-439b-a4a2-959bf4dd23ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Apil Tamang

unread,
Sep 27, 2016, 9:00:21 PM9/27/16
to opencog, linasv...@gmail.com
Hi,
This is some minor question(s) about the installation that I haven't quite been able to wrap my head around.

--------------------------------------------------------------------------------------------------------------------------------------------
The readme.md file in this folder: /path/to/git/docker/opencog/README.MD states:

- 4. Specify a directory for storing ccache's compiler outputs

   ```
   mkdir -p $HOME/path/to/where/you/want/to/save/ccache/output
   export CCACHE_DIR=$HOME/path/to/where/you/want/to/save/ccache/output`
   ```

   Specifying this means, making a clean build of source code after removing a
   container will be faster. If you don't want to do this, then comment out the
   `- $CCACHE_DIR:/home/opencog/.ccache` in `common.yml` file

I am not sure what this is about. Should I 'mkdir' inside the ubuntu image in docker, or in my main OS host ?
--------------------------------------------------------------------------------------------------------------------------------------------
Also, the file tells:

## Steps for OpenCog development

__For UNIX like Systems only__

1. Add these lines to `~/.bashrc` at $HOME of your PC and run
   `source ~/.bashrc`.

   ```
   export OPENCOG_SOURCE_DIR=$HOME/path/to/opencog
   export ATOMSPACE_SOURCE_DIR=$HOME/path/to/atomspace
   export COGUTILS_SOURCE_DIR=$HOME/path/to/cogutils
   export OC2MC_SOURCE_DIR=$HOME/path/to/opencog-to-minecraft
   ```

   __Optionally, if you are using `moses` add to `~/.bashrc`,
   `export MOSES_SOURCE_DIR=$HOME/path/to/moses` and uncomment
   `- $MOSES_SOURCE_DIR:/moses` line in the docker-compose.yml file.__

Again, where is opencog/atomspace/... /opencog-to-minecraft installed on my PC (or do you mean the Ubuntu image with OpenCog!!) ? I just finished building the opencog docker image using ./docker-image.sh -btcp. Where are these folders created in the docker-image? 

Thanks for looking into it. I'm just trying to make sure I understand the details of what I did, and what I'm about to do, as I proceed with the installation.


On Monday, September 26, 2016 at 5:15:37 PM UTC-4, linas wrote:
There is a docker container in the docker repository. You might have the most fun, however, in getting the hansonrobotics/HEAD repo working.  This integrates chat with a 3D robot head.

--linas
On Mon, Sep 26, 2016 at 4:01 PM, Apil Tamang <apil.tama...@gmail.com> wrote:
Hey All,
I've been reading about the OpenCog architecture for a while, and mainly from Ben's volumes (I & II) on the system. It is very interesting, and although I'm far from having digested it all completely, I guess this is a good time as any to actually get started hands-on. My interests are particularly on the NLP facets of the project. 

About myself: I'm just a regular software developer moderately versed in JAVA. I dabbled in C++ a little in my school years. I've got a book in C++ I plan to peruse through while going through this. I am not a terribly brilliant person, but I've always adored physics and mathematics. I got a bachelors in these, and two masters subsequently in the engineering. Thus, I have a fair amount of experience doing core research. In some way, that's what I envision of myself as an OpenCog member in the far (far) future.

So, towards that purpose, how can I best get started? Is there preferably some  docker image that I need to boot? There're just so many sub-projects on github on opencog, it's a little mindnumbing. Also, is there someone who can best mentor me for a little while? Again, I'd love to get started with some minor tasks, preferably in the NLP arena. However, I'm fairly open to any opportunities.

Thanks very much in advance..

--
You received this message because you are subscribed to the Google Groups "opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencog+u...@googlegroups.com.

Linas Vepstas

unread,
Sep 27, 2016, 9:35:22 PM9/27/16
to Apil Tamang, opencog
Beats the heck out of me.  The docker image should choose some reasonable location for the ccache files, and not force you to manually set it up.  Likewise for the environment variables.  I don't even know why they are needed -- I don't use them. I guess that, once upon a time, they must have solved some problem for someone, somewhere ... ?

As you noted, there's a bunch of stuff in opencog, and to move forward, you'll need to work past various off-center issues and problems.  If (when?) something looks obviously wrong or out of ate, submit a pull request.

--linas

AmeBel

unread,
Sep 27, 2016, 10:29:27 PM9/27/16
to opencog, linasv...@gmail.com
Hi,


On Wednesday, September 28, 2016 at 9:00:21 AM UTC+8, Apil Tamang wrote:
Hi,
This is some minor question(s) about the installation that I haven't quite been able to wrap my head around.

--------------------------------------------------------------------------------------------------------------------------------------------
The readme.md file in this folder: /path/to/git/docker/opencog/README.MD states:

- 4. Specify a directory for storing ccache's compiler outputs

   ```
   mkdir -p $HOME/path/to/where/you/want/to/save/ccache/output
   export CCACHE_DIR=$HOME/path/to/where/you/want/to/save/ccache/output`
   ```

   Specifying this means, making a clean build of source code after removing a
   container will be faster. If you don't want to do this, then comment out the
   `- $CCACHE_DIR:/home/opencog/.ccache` in `common.yml` file

I am not sure what this is about. Should I 'mkdir' inside the ubuntu image in docker, or in my main OS host ?

on your main OS. 
--------------------------------------------------------------------------------------------------------------------------------------------
Also, the file tells:

## Steps for OpenCog development

__For UNIX like Systems only__

1. Add these lines to `~/.bashrc` at $HOME of your PC and run
   `source ~/.bashrc`.

   ```
   export OPENCOG_SOURCE_DIR=$HOME/path/to/opencog
   export ATOMSPACE_SOURCE_DIR=$HOME/path/to/atomspace
   export COGUTILS_SOURCE_DIR=$HOME/path/to/cogutils
   export OC2MC_SOURCE_DIR=$HOME/path/to/opencog-to-minecraft
   ```

   __Optionally, if you are using `moses` add to `~/.bashrc`,
   `export MOSES_SOURCE_DIR=$HOME/path/to/moses` and uncomment
   `- $MOSES_SOURCE_DIR:/moses` line in the docker-compose.yml file.__

Again, where is opencog/atomspace/... /opencog-to-minecraft installed on my PC (or do you mean the Ubuntu image with OpenCog!!) ? I just finished building the opencog docker image using ./docker-image.sh -btcp. Where are these folders created in the docker-image? 

No on your host OS. 

Thanks for looking into it. I'm just trying to make sure I understand the details of what I did, and what I'm about to do, as I proceed with the installation.

The reason you set the environment variable on your host system is for persisting your changes to the repos on your host OS.  

For example if you run
docker-compose run --rm dev

and exit the container then the changes you made to the repo will persist, even though the container is remove opencog_dev_run_1 is removed.

If you don't use docker-compose and are using docker run directly then you could configure your setup however you like, the setting of the environment variables are not required.

Apil Tamang

unread,
Oct 1, 2016, 12:23:25 PM10/1/16
to opencog, linasv...@gmail.com
Hi, 
So I got the docker images, cloned the git repos, set all my environment variables as described here. Now, I ran the following command to get my containers up and running (also described here).

- docker-compose run dev

I got the following exception on my console (see attached image).


I am currently in dir: user.home/path/to/docker/opencog, where, among other files, I can see the .docker-build.sh and docker-compose.yml files.

The following is the list of the docker images I downloaded from the repo.


Reply all
Reply to author
Forward
0 new messages