Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SentimentAnalysisCoarseGrainedRequest ¶
type SentimentAnalysisCoarseGrainedRequest struct { /** * 输入的文本,通过情感分析模型得到文本对应的情感倾向(输入文本长度最好不超过512字) */ Text string `json:"text"` }
func (*SentimentAnalysisCoarseGrainedRequest) DoInvoke ¶
func (req *SentimentAnalysisCoarseGrainedRequest) DoInvoke(client mtclient.MeituanClient) (*SentimentAnalysisCoarseGrainedResponse, error)
type SentimentAnalysisCoarseGrainedResponse ¶
type SentimentAnalysisCoarseGrainedResponse struct { Code string `json:"code"` Msg string `json:"msg"` /** * sentimentResultMap:情感分析的结果,statusCode:返回状态,errorMessage:状态错误时返回的信息 */ Data string `json:"data"` TraceId string `json:"traceId"` }
func (*SentimentAnalysisCoarseGrainedResponse) IsSuccess ¶
func (response *SentimentAnalysisCoarseGrainedResponse) IsSuccess() bool
Click to show internal directories.
Click to hide internal directories.