class

NLP::SemanticUnderstanding::Analyzer

Inherits Reference < Object

Main semantic understanding analyzer

Constructors

new(language : String = "en")

Instance methods

analyze(text : String) : SemanticAnalysis

Analyze text and extract semantic information

analyze_to_atomspace(text : String, atomspace : AtomSpace::AtomSpace) : Array(AtomSpace::Atom)

Analyze and store in AtomSpace

dependency_parser
extract_key_concepts(text : String, max_concepts : Int32 = 5) : Array(String)

Extract key concepts from text

extract_named_entities(text : String) : Array(String)

Extract named entities from text

infer_implications(text : String, atomspace : AtomSpace::AtomSpace) : Array(AtomSpace::Atom)

Infer implicit information

language
semantic_similarity(text1 : String, text2 : String) : Float64

Determine semantic similarity between two texts