also it seems that "common.scm" should be loaded besides "compute-mi.scm"
and "batch-word-pair.scm"  before running batch-any-pairs, otherwise the
following error will pop up after an hour's computing...

======
guile-en> (batch-any-pairs)
Start loading words ...
Elapsed time to load words: 3 secs
Done loading words, now loading pairs
Elapsed time to load ANY-link pairs: 53 secs
Finished loading any-word-pairs
Support: num left=67735 num right=67735
Done with wild-card count N(*,w) and N(w,*) in 28 secs
Done computing N(*,*) total-count=17704056.0 in 2 secs
Start computing log P(*,w)
Done computing 67735 left-wilds in 3 secs
Done storing 67735 left-wilds in 621 secs
Done with -log P(*,w), start -log P(w,*)
Done computing 67735 right-wilds in 2 secs
Done storing 67735 right-wilds in 701 secs
Done computing -log P(w,*) and <-->
Going to do individual word-pair MI
Backtrace:
           6 (apply-smob/1 #<catch-closure 2d71420>)
           5 (apply-smob/1 #<catch-closure 2d71380>)
In ice-9/boot-9.scm:
   2316:4  4 (save-module-excursion _)
In ice-9/eval-string.scm:
     38:6  3 (read-and-eval #<input: string 44cdee0> #:lang _)
In
/home/ruiting/hansonrobotics/opencog/opencog/build/../opencog/nlp/learn/compute-mi.scm:
   513:33  2 (batch-all-pair-mi _)
In ice-9/boot-9.scm:
   759:25  1 (dispatch-exception 0 unbound-variable ("module-look…" …))
In unknown file:
           0 (apply-smob/1 #<catch-closure 2d71340> unbound-variable …)

ERROR: In procedure apply-smob/1:
ERROR: In procedure module-lookup: Unbound variable: make-progress-rpt
ABORT: unbound-variable


Ruiting Lian

On Mon, May 22, 2017 at 7:07 PM, Ruiting Lian <[email protected]>
wrote:

> Hi Linas,
> ```
> (use-modules (opencog) (opencog persist) (opencog persist-sql))
> (use-modules (opencog nlp) (opencog nlp learn))
> (sql-open "postgres:///en_pairs?user=ubuntu&password=asdf")
> (batch-all-pairs)
> ```
> I assume line 408 of the README file
> <https://github.com/opencog/opencog/blob/master/opencog/nlp/learn/README>
> is supposed to be (batch-any-pairs)? Got the following error while using
> (batch-all-pairs):
>
> ERROR: In procedure apply-smob/1:
> ERROR: Unbound variable: batch-all-pairs
> ABORT: unbound-variable
>
>
> FYI, the wiki-ss-en.sh didn't finish processing all the articles (from the
> 300MB simple english wikipedia corpus) to atom tables before my computer
> crashed. It submitted around 20,000 articles (about 22MB in size, according
> to the "submitted-articles" folder it generated) to the database.  It has
> 16611283 atoms so far.
>
> learn-pairs=# SELECT count(uuid) FROM Atoms;
>
>   count
> ----------
>  16611283
> (1 row)
>
> The above process has already taken around 28 hours, so I decided to move
> on with the small corpus first.
>
> --
> Ruiting Lian
>
> On Sat, May 13, 2017 at 2:53 AM, Linas Vepstas <[email protected]>
> wrote:
>
>>
>>
>> On Fri, May 12, 2017 at 5:58 AM, Ruiting Lian <[email protected]>
>> wrote:
>>
>>> Hi Linas,
>>> *
>>>
>>> 8) Chose the corresponding `learn-pairs-??.scm` file, copy it from
>>>    the `run` directory to your working directory.
>>>
>>> by "learn-pairs-??.scm", I guess you meant "pair-count-??.scm",
>>>
>>
>> Yes.
>>
>>
>>> because I didn't find any file in the 'run' directory whose name starts
>>> with "learn-pairs"
>>>
>>> So when I run "guile -l pair-count-en.scm", I got the following errors:
>>>
>>> ;;; ERROR: Syntax error:
>>> ;;; opencog/nlp/learn/pseudo-csets.scm:309:8: definition in expression
>>> context, where definitions are not allowed, in form (define n-tot
>>> (get-stashed-count))
>>>
>>
>> I think you need to do a git-pull. For me, line 309 is something
>> compleltely different.
>>
>> https://github.com/opencog/opencog/blob/master/opencog/nlp/learn/pseudo-csets.scm#L309
>>
>>
>>> Any idea how to fix it? Thanks a lot.
>>>
>>
>> I also created an LXC container with everything in it, ready to go.  This
>> morning, the container doesn't boot.  This is due to a brand-new systemd
>> bug.  I cannot even begin to express how much I absolutely hate systemd. It
>> goes way out of the way to stab you in the back, repeatedly, every few
>> months, on purpose. It is the worst piece of software devised by humankind.
>> It is actually worse than Windows.  I have lost vast amounts of time and
>> productivity trying to work around systemd bugs.  Like right now.I just
>> lost about 12 hours work due to systemd, again, and I will loose another
>> 12+ hours trying to debug it, and work around it.  Stoopid POS.
>>
>> I want an operating system that is stable, that works, the boots when I
>> boot it. I do not want an operating system where I have to be a rocket
>> surgeon to make it work. systemd sucks.
>>
>> --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 [email protected].
>> To post to this group, send email to [email protected].
>> 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/CAHrUA35WzAE8Y4-xB8aiH8oBW-c7ApZf%3DP80id-8pUbdm53PLg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/opencog/CAHrUA35WzAE8Y4-xB8aiH8oBW-c7ApZf%3DP80id-8pUbdm53PLg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
-- 
Ruiting Lian

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/CANXBDVuOAPDyJATSpFbVoqSd2L0cBWKkh0u6zgh7ktyK5UQm3A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to