LgParseLink

From OpenCog
Jump to: navigation, search

A type of Link used to obtain parses from the link-grammar parser. See opencog/nlp/lg-parse for details and the design discussion.

The format that is generated by parsing is described in the sentence representation page.

Example

Here is a working example usage:

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

(cog-execute!
   (LgParseLink
      (PhraseNode "this is a test.")
      (LgDictNode "en")
      (NumberNode 1)))

(cog-prt-atomspace)