Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(httpClient *http.Client, classifier *flows.Classifier, endpoint, appID, key string) flows.ClassificationService
NewService creates a new classification service
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a basic LUIS client
type ExtractedEntity ¶
type ExtractedIntent ¶
type PredictResponse ¶
type PredictResponse struct { Query string `json:"query"` TopScoringIntent *ExtractedIntent `json:"topScoringIntent"` Intents []ExtractedIntent `json:"intents" validate:"required"` Entities []ExtractedEntity `json:"entities"` SentimentAnalysis *SentimentAnalysis `json:"sentimentAnalysis"` }
PredictResponse is the response from a predict request
type SentimentAnalysis ¶
Click to show internal directories.
Click to hide internal directories.