This repository has been archived by the owner on May 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
REPL Output
Ben edited this page Mar 13, 2016
·
2 revisions
This is extremely long, so I moved it to a separate page:
#<WitBot::Outcome:0x7fd60259d758
attr_reader :_text = "This is a cool test.",
attr_reader :confidence = 0.571,
attr_reader :entities = {
"word" => #<WitBot::EntityModel:0x7fd601aa65c0
@value = nil,
attr_accessor :others = [],
attr_reader :entity = #<WitBot::WitModel::Entity:0x7fd601aa6ac0
@delete_listeners = [],
attr_accessor :doc = false,
attr_accessor :values = nil,
attr_reader :id = {
:id => nil,
:request => true
},
attr_reader :uuid = nil
>,
attr_reader :raw = {
"type" => "value",
"value" => "This"
},
attr_reader :role = "word"
>,
"adjective" => #<WitBot::EntityModel:0x7fd601aa5a30
@value = nil,
attr_accessor :others = [],
attr_reader :entity = #<WitBot::WitModel::Entity:0x7fd601aa5eb8
@delete_listeners = [],
attr_accessor :doc = false,
attr_accessor :values = nil,
attr_reader :id = {
:id => nil,
:request => true
},
attr_reader :uuid = nil
>,
attr_reader :raw = {
"type" => "value",
"value" => "cool"
},
attr_reader :role = "adjective"
>,
"thing" => #<WitBot::EntityModel:0x7fd601aa4db0
@value = nil,
attr_accessor :others = [],
attr_reader :entity = #<WitBot::WitModel::Entity:0x7fd601aa52b0
@delete_listeners = [],
attr_accessor :doc = false,
attr_accessor :values = nil,
attr_reader :id = {
:id => nil,
:request => true
},
attr_reader :uuid = nil
>,
attr_reader :raw = {
"type" => "value",
"value" => "test"
},
attr_reader :role = "thing"
>
},
attr_reader :intent = #<WitBot::WitModel::Intent:0x7fd60259d668
@delete_listeners = [],
attr_accessor :doc = nil,
attr_accessor :expressions = [],
attr_accessor :meta = #<WitBot::IntentMeta:0x7fd601aa7830
attr_reader :states = []
>,
attr_accessor :metadata = nil,
attr_accessor :name = "Test",
attr_reader :id = "Test"
>,
attr_reader :message = #<WitBot::Message:0x7fd601c07090
attr_reader :_outcomes = [
[0] {
"_text" => "This is a cool test.",
"confidence" => 0.571,
"intent" => "Test",
"entities" => {
"word" => [
[0] {
"type" => "value",
"value" => "This"
}
],
"adjective" => [
[0] {
"type" => "value",
"value" => "cool"
}
],
"thing" => [
[0] {
"type" => "value",
"value" => "test"
}
]
}
}
],
attr_reader :_text = "This is a cool test.",
attr_reader :id = "73a91f08-a18f-402a-a1d5-30c394dd7fa7",
attr_reader :outcomes = [
[0] ...WitBot::Outcome...
],
attr_reader :sent = true,
attr_reader :text = "This is a cool test.",
attr_reader :thread = #<WitBot::MessageThread:0x7fd601c07770
attr_reader :context = #<WitBot::Context:0x007fd601c04070>,
attr_reader :id = "7be8ef9e-9a2a-4fc9-ae80-77149cc5b61c",
attr_reader :messages = {}
>
>,
attr_reader :raw = {
"_text" => "This is a cool test.",
"confidence" => 0.571,
"intent" => "Test",
"entities" => {
"word" => [
[0] {
"type" => "value",
"value" => "This"
}
],
"adjective" => [
[0] {
"type" => "value",
"value" => "cool"
}
],
"thing" => [
[0] {
"type" => "value",
"value" => "test"
}
]
}
}
>
Down here?
Cool.
I should add something somewhat interesting for you to read...
Here's how to get started with wit_bot in 3 steps:
- Learn how to use wit.ai
- Learn how to setup the gem
- Learn how to send a message
- Learn how to use message threads
- Learn how to use context
- Learn how to use conversations
- Learn to use the REPL
- Learn how to use conversations
- Learn how to use participants
- Learn how to use bots