| … | … | @@ -12,6 +12,19 @@ |
| 12 | 12 | ; generates fairly complicated data representations that are |
| 13 | 13 | ; challenging to process. |
| 14 | 14 | ; |
| 15 | ; For each sentence in the input text, the LG parser produces four |
| 16 | ; linkages. This demo uses the `FlatStream` Value to flatten this |
| 17 | ; list, and issue only one linkage at a time. |
| 18 | ; |
| 19 | ; Each linkage is a compund structure, having a list of words, and |
| 20 | ; a list of bonds between words (word-pairs). A FilterLink is used |
| 21 | ; to unwrap this structure, discard the words, and keep the bonds. |
| 22 | ; |
| 23 | ; -------- |
| 24 | ; Not implemented her (yet, but appears in main aatomspace demos): |
| 25 | ; Count the number of word-pairs, and compute the MI between them, |
| 26 | ; using nothing but a pure Atomese pipeline, continuing the below. |
| 27 | ; |
| 15 | 28 | (use-modules (opencog) (opencog exec) (opencog sensory)) |
| 16 | 29 | (use-modules (opencog nlp) (opencog nlp lg-parse)) |
| 17 | 30 | |