LgDictNode

From OpenCog
Jump to: navigation, search

A type of Link used to access the link-grammar dictionary. See opencog/nlp/lg-dict for details and the design discussion.

Example

Here is a working example usage:

(use-modules (opencog) (opencog exec))
(use-modules (opencog nlp) (opencog nlp lg-parse))

(cog-execute!
   (LgDictEntry
      (WordNode "...")
      (LgDictNode "en")))
 
(cog-prt-atomspace)

In this example, "..." is the elipsis, and it has a dictionary entry, specifying all of the ways that an elipsis can be linked.

See also