Closed kripper closed 1 month ago
python3 english_to_narsese.py < ./examples/english/story1.english | ./NAR shell
generates:
Comment: Input sentence: the cat leaves the forest Input: <(cat * forest) --> leave>. Priority=1.000000 Stamp=[1] Truth: frequency=1.000000, confidence=0.900000 Comment: Input sentence: the hunter sees the cat Input: <(hunter * cat) --> see>. Priority=1.000000 Stamp=[2] Truth: frequency=1.000000, confidence=0.900000 Comment: Input sentence: nars hears a boom Input: <(nars * boom) --> hear>. Priority=1.000000 Stamp=[3] Truth: frequency=1.000000, confidence=0.900000 Comment: Input sentence: the cat is dead Input: <cat --> [dead]>. Priority=1.000000 Stamp=[4] Truth: frequency=1.000000, confidence=0.900000 Comment: Input sentence: who has left the forest? Input: <(?1 * forest) --> leave>? Answer: <(cat * forest) --> leave>. creationTime=1 Stamp=[1] Truth: frequency=1.000000, confidence=0.900000 Comment: expected: Answer: <(cat * forest) --> leave>. :|: occurrenceTime=1 Truth: frequency=1.000000, confidence=0.900000 performing 100 inference steps: done with 100 additional inference steps. Comment: Input sentence: the wolf leaves the forest Input: <(wolf * forest) --> leave>. Priority=1.000000 Stamp=[5] Truth: frequency=1.000000, confidence=0.900000 Comment: Input sentence: the hunter sees the wolf? Input: <(hunter * wolf) --> see>? Answer: None.
But according to the comment, the last expected output is:
Answer: <(hunter * wolf) --> see>. :|: occurrenceTime=106 Truth: frequency=0.982144, confidence=0.227439
If you want it to encode the language as events by default, use the "EventOutput" argument: python3 english_to_narsese.py EventOutput < ./examples/english/story1.english | ./NAR shell
python3 english_to_narsese.py EventOutput < ./examples/english/story1.english | ./NAR shell
python3 english_to_narsese.py < ./examples/english/story1.english | ./NAR shell
generates:
But according to the comment, the last expected output is:
Answer: <(hunter * wolf) --> see>. :|: occurrenceTime=106 Truth: frequency=0.982144, confidence=0.227439