OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-agents commits / 84baf1f

Continue with the demo.
84baf1f3e31890ce351d4cac69efe1d239571883
by Linas Vepštas <linasvepstas@gmail.com> · 2024-04-16T22:26:13.000Z

Changed files (1) +8 -6

scm/pair-agent/count-agent.scm +8 -6
……@@ -1,6 +1,7 @@
11
2(use-modules (opencog) (opencog nlp) (opencog nlp lg-parse))
3(use-modules (opencog exec) (opencog persist))
2(use-modules (opencog) (opencog exec) (opencog persist))
3(use-modules (opencog nlp) (opencog nlp lg-parse))
4(use-modules (opencog sensory))
45(use-modules (srfi srfi-1))
56
67; Here's the design we want:
……@@ -118,10 +119,11 @@
118119 (SetValue (Concept "foo") (Predicate "some place")
119120 (FileRead "file:///tmp/demo.txt")))
120121
121(cog-execute!
122 (LgParseBonds
123 (ValueOf (Concept "foo") (Predicate "some place"))
124 DICT NUML))
122; Wait ...
123(define txt-stream-gen
124 (ValueOf (Concept "foo") (Predicate "some place")))
125
126(cog-execute! (LgParseBonds txt-stream-gen DICT NUML))
125127
126128; (load "count-agent.scm")
127129; (obs-txt text-blob)