OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-agents commits / 7f2a43b

Working count-increment
7f2a43be186309fffbfd2f9aefd535a7d6aeb210
by Linas Vepštas <linasvepstas@gmail.com> · 2024-04-06T18:20:45.000Z

Changed files (1) +10 -1

scm/pair-agent/count-agent.scm +10 -1
……@@ -32,6 +32,15 @@
3232 (FloatValueOf edge (Predicate "count"))
3333 (FloatValueOf (Number 0 0 0))))))
3434
35 (define (extract stuff)
36 (Filter
37 (Rule
38 (Variable "$edge")
39 ; (TypedVariable (Variable "$edge") (Type 'Edge))
40 (Variable "$edge")
41 (incr-cnt (Variable "$edge")))
42 stuff))
43
3544 (define parseli
3645 (PureExecLink (LgParseBonds (Phrase PLAIN-TEXT) DICT NUML)))
3746 (define filty
……@@ -47,7 +56,7 @@
4756 (Type 'LinkValue) ; edge-list wrapper
4857 (Glob "$x"))) ; all of the edges
4958 ; Rewrite
50 (incr-cnt (Glob "$x"))
59 (extract (Glob "$x"))
5160 )
5261 parseli))
5362