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