On Mon, Jan 29, 2018 at 1:02 AM, Randy Deborggraeve < [email protected]> wrote:
> > But for example, the following will succeed if called from c++ of directly > in guile: > (nlp-parse "test") > while this fails > (nlp-parse "Test") > I don't know what you mean by succeed/fail. There are many steps in the pipeline. Lower-case "test" can be interpreted as a zero copula noun-assertion "[This is a] test". Uppercase Test can be interpreted as the the former, since words at the beginning of sentences are capitalized. It can also be interpreted as a proper name: some corporation whose name is Test, or some person. If the parser suggests a proper name, and later parts of the pipeline (such as R2L) don't handle proper names, then there's an error. The low-level parser makes multiple suggestions, but the higher level stages of the nlp pipeline ignore the multiple suggestions, and pick only the first. What should probably happen is that if the first parse is bad or uninterpretable, then try again with the second one, and see if that works, etc. That would require some amount of fiddling with the guts of the pipeline. --linas > > Op 28 jan. 2018 22:57 schreef "Linas Vepstas" <[email protected]>: > > You have commas in your numeric values. Scheme sees the comma in 0,2000 > and gets confused. > > This might be due to some locale setting, somewhere. > > Also, having the backslash before the quotes is bizzarre ... that is not > normally needed, and I'm certain it will confuse scheme also, unless > seomthing else is removing the backslash before passing it to guile. > > --linas > > On Sun, Jan 28, 2018 at 3:40 PM, Randy Deborggraeve < > [email protected]> wrote: > >> I'm having some issues running SCM modules. Not sure what changed on my >> system, but even the atomspace BasicSCM unit test fails. >> >> Scheme command '(Node \"ola amigos\" (stv 0,200000 0,300000))' returns >> the following error: >> [2018-01-28 21:29:50:025] [DEBUG] Backtrace: >> 9 (apply-smob/1 #<catch-closure 1edd500>) >> 8 (apply-smob/1 #<catch-closure 1ee5ec0>) >> In ice-9/boot-9.scm: >> 2316:4 7 (save-module-excursion #<procedure 1ee4c80 at ice-9/eva…>) >> In ice-9/eval-string.scm: >> 38:6 6 (read-and-eval #<input: string 2182690> #:lang _) >> In ice-9/eval.scm: >> 196:43 5 (_ #f) >> 196:35 4 (_ #f) >> 223:20 3 (proc #<directory (guile-user) 1e040a0>) >> In unknown file: >> 2 (%resolve-variable (7 . #{0,200000}#) #<directory (guil…>) >> In ice-9/boot-9.scm: >> 759:25 1 (dispatch-exception 0 unbound-variable (#f "Unbound …" …)) >> In unknown file: >> 0 (apply-smob/1 #<catch-closure 1ee5e80> unbound-variable …) >> >> ERROR: In procedure apply-smob/1: >> ERROR: Unbound variable: #{0,200000}# >> ABORT: unbound-variable >> >> >> I have no clue what is causing this or how to fix. Seems this is not even >> a opencog related error :( >> Already rebuild/installed all modules, cleared the .cache/guile folder, >> ... >> >> -- >> 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/ms >> gid/opencog/eed44fab-2935-41f6-9c4b-1196735274ba%40googlegroups.com >> <https://groups.google.com/d/msgid/opencog/eed44fab-2935-41f6-9c4b-1196735274ba%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > cassette tapes - analog TV - film cameras - you > > -- > 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/ms > gid/opencog/CAHrUA34czy40A2%3D9KQ5OJN%2Bsq9chmi2VV2f6SfFhORg > 9_u2%3DBw%40mail.gmail.com > <https://groups.google.com/d/msgid/opencog/CAHrUA34czy40A2%3D9KQ5OJN%2Bsq9chmi2VV2f6SfFhORg9_u2%3DBw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > > > -- > 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/CADMmUX9ki3M_ckjoHTgFcSuK2TQ-e0utzeefgRmOWUQ0BKs5bg%40mail. > gmail.com > <https://groups.google.com/d/msgid/opencog/CADMmUX9ki3M_ckjoHTgFcSuK2TQ-e0utzeefgRmOWUQ0BKs5bg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- cassette tapes - analog TV - film cameras - you -- 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/CAHrUA37cDore23RJ3B1KpciSwRfu5XhGvgE7pOCdGb%2By_CDKsQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
