NLP::LinkGrammar::Parser
Inherits Reference < Object
Main Link Grammar Parser class
Constructors
new(language : String = "en", dictionary_path : String | Nil = nil)
Instance methods
dictionary_lookup(word : String) : Array(Disjunct)
Lookup a word in the dictionary
dictionary_path
language
parse(sentence : String, max_linkages : Int32 = 10) : Array(Linkage)
Parse a sentence and return all possible linkages
parse_to_atomspace(sentence : String, atomspace : AtomSpace::AtomSpace, max_linkages : Int32 = 1) : Array(AtomSpace::Atom)
Parse sentence and store result in AtomSpace