| … | … | @@ -1,20 +1,16 @@ |
| 1 | 1 | ; |
| 2 | 2 | ; pair-count.scm -- Example demo of assembling a word-pair counter. |
| 3 | 3 | ; |
| 4 | | ; Prototype hand-built agent capable of counting things observed |
| 5 | | ; in the external environment. |
| 4 | ; The generic goal is to be able to observe the external world, and to |
| 5 | ; then count things that "happen at the same time". The demo here counts |
| 6 | ; word pairs, observed to occur in sentences obtained from a text file. |
| 6 | 7 | ; |
| 7 | | ; Demos counting of word-pairs observed by looking at a text file. |
| 8 | | ; The Sensory API allows easy generalization to other text sources, |
| 9 | | ; so working with files is OK for now. |
| 8 | ; The demo builds up a processing pipeline, step by step, verifying that |
| 9 | ; everythig works at each stage. The result is a carefully-crafted |
| 10 | ; counting pipeline. An eventual goal of the sensory project is to |
| 11 | ; auto-generate these kinds of pipelines. This demo is meant to |
| 12 | ; illustrate a non-trivial pipeline. |
| 10 | 13 | ; |
| 11 | | ; The dataflow pipeline is hand-crafted. (The sensory API is supposed |
| 12 | | ; to eventually auto-build these pipelines, but that code is not working |
| 13 | | ; yet.) You'll notice that the pipeline below is ... complicated. |
| 14 | | ; |
| 15 | | ; The "rest of the demo", where we do something with the word pairs, |
| 16 | | ; is in "generate.scm". |
| 17 | | |
| 18 | 14 | (use-modules (opencog) (opencog exec) (opencog persist)) |
| 19 | 15 | (use-modules (opencog nlp) (opencog nlp lg-parse)) |
| 20 | 16 | (use-modules (opencog sensory)) |