Hi,
Yes, John.scm makes sense. That is the relex output. If you want the
pattern you described, then you need to use relex2logic.
See http://wiki.opencog.org/wikihome/index.php/Running_Relex2Logic_with_OpenCog
?
you will get
(EvaluationLink
(PredicateNode "eats@120c7dae-5ae2-49f0-a50c-85cecfe1c104")
(ListLink
(ConceptNode "John@edc25b98-bb81-4916-badd-fd06b829c3c0")
(ConceptNode "apple@4ade504b-c8f1-41be-bec6-0186f1e81103")
)
which is not the fully abstracted(aka normalized) version.
On Wednesday, August 31, 2016 at 6:29:49 AM UTC+8, [email protected]
wrote:
>
>
>
> Hello All,
>
> I have a text file "John.txt", which has the following:
>
> John eats apple.
> Mary eats mango.
> End.
> Mike eats orange.
>
>
> I have converted it into cff (which is in the form of xml, "John.xm"l) by
> using "batch-process.sh" and in turn converted that into scm (John.scm)
> using ./cff-to-opencog.pl. Because when i straightly tried converting a
> text file into scheme file, i got only this:
>
> (ReferenceLink (stv 1 1)
> (DocumentNode "document@f313865f-35a5-48eb-8f56-92786a7a4d57")
> (ListLink
> )
> )
>
>
>
> I expected "John.scm" to be something like this :
>
> (EvaluationLink
> (PredicateNode "eat")
> (ListLink
> (VariableNode "John")
> (ConceptNode “apple")
> )
>
>
>
> (EvaluationLink
> (PredicateNode "eat")
> (ListLink
> (VariableNode "Mary")
> (ConceptNode “mango")
> )
>
>
> But the "John.scm" appears to be somewhat different. Is this file making
> sense? or should i make my own script instead of ./cff-to-opencog.pl.
> This question may sound stupid. But may help beginners.
>
> (I have attached scm, txt and xml file for reference)
>
> Any guidelines would be very helpful.
>
>
> Thanks in advance
> Vishnu
>
>
>
--
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/b6983942-6169-4279-b026-02a38ae1b6e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.