Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(classifier *flows.Classifier, accessToken string) flows.ClassificationService
NewService creates a new NLU service
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a basic Wit.ai client
type EntityCandidate ¶
type MessageResponse ¶
type MessageResponse struct { MsgID string `json:"msg_id"` Text string `json:"_text"` Entities map[string][]EntityCandidate `json:"entities" validate:"required"` }
MessageResponse is the response from a /message request
Click to show internal directories.
Click to hide internal directories.