Class: Charyf::Engine::Intent
- Defined in:
- lib/charyf/engine/intent/intent.rb,
lib/charyf/engine/intent/processors/dummy.rb,
lib/charyf/engine/intent/processors/helpers.rb,
lib/charyf/engine/intent/processors/processor.rb
Defined Under Namespace
Modules: Processor
Instance Attribute Summary collapse
-
#confidence ⇒ Object
readonly
Returns the value of attribute confidence.
-
#entities ⇒ Object
readonly
Returns the value of attribute entities.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name, confidence, entities = Hash.new) ⇒ Intent
constructor
A new instance of Intent.
Constructor Details
#initialize(name, confidence, entities = Hash.new) ⇒ Intent
7 8 9 10 11 |
# File 'lib/charyf/engine/intent/intent.rb', line 7 def initialize(name, confidence, entities = Hash.new) @name = name @confidence = confidence @entities = entities || {} end |
Instance Attribute Details
#confidence ⇒ Object (readonly)
Returns the value of attribute confidence.
5 6 7 |
# File 'lib/charyf/engine/intent/intent.rb', line 5 def confidence @confidence end |
#entities ⇒ Object (readonly)
Returns the value of attribute entities.
5 6 7 |
# File 'lib/charyf/engine/intent/intent.rb', line 5 def entities @entities end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/charyf/engine/intent/intent.rb', line 5 def name @name end |
Class Method Details
.unknown ⇒ Object
13 14 15 |
# File 'lib/charyf/engine/intent/intent.rb', line 13 def self.unknown Intent.new('charyf/unknown', 0) end |