class

NLP::SemanticUnderstanding::Frame

Inherits Reference < Object

Represents a semantic frame (event/state)

Constructors

new(name : String, frame_elements : Hash(SemanticRole, String) = {} of SemanticRole => String, confidence : Float64 = 1.0)

Instance methods

add_element(role : SemanticRole, filler : String)
confidence
frame_elements
name
to_atomspace(atomspace : AtomSpace::AtomSpace) : Array(AtomSpace::Atom)

Convert to AtomSpace representation

to_s(io : IO)

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>