Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(httpClient *http.Client, httpRetries *httpx.RetryConfig, classifier *flows.Classifier, accessToken string) flows.ClassificationService
NewService creates a new classification service
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a basic Bothub client
type EntityMatch ¶
type IntentMatch ¶
type ParseResponse ¶
type ParseResponse struct { Intent IntentMatch `json:"intent" validate:"required"` IntentRanking []IntentMatch `json:"intent_ranking" validate:"required"` LabelsList []string `json:"labels_list"` EntitiesList []string `json:"entities_list"` Entities map[string][]EntityMatch `json:"entities"` Text string `json:"text"` UpdateID int `json:"update_id"` Language string `json:"language"` }
ParseResponse is the response from a /parse request
Click to show internal directories.
Click to hide internal directories.