Documentation ¶
Index ¶
- type AspectAdvanceOpinion
- type AspectOpinion
- type AspectSentimentAdvanceRequest
- type AspectSentimentAdvanceRequestType
- type AspectSentimentAdvanceRequestTypeEnum
- type AspectSentimentRequest
- type AspectSentimentRequestType
- type AspectSentimentRequestTypeEnum
- type ClassificationReq
- type ClassificationReqDomain
- type ClassificationReqDomainEnum
- type ClassificationResult
- type CreatePoem
- type CreatePoemType
- type CreatePoemTypeEnum
- type DependencyParserRequest
- type DependencyParserRequestLang
- type DependencyParserRequestLangEnum
- type DependencyParserWord
- type DependencyParserWordDependencyLabel
- type DependencyParserWordDependencyLabelEnum
- type DocumentClassificationReq
- type DocumentClassificationReqLang
- type DocumentClassificationReqLangEnum
- type DomainNamedEntity
- type DomainSentimentReq
- type DomainSentimentReqType
- type DomainSentimentReqTypeEnum
- type EntitySentimentReq
- type EventExtractionResponseItem
- type EventExtractionResponseItemArgument
- type FileTranslationReq
- type FileTranslationReqFrom
- type FileTranslationReqFromEnum
- type FileTranslationReqTo
- type FileTranslationReqToEnum
- type FileTranslationReqType
- type FileTranslationReqTypeEnum
- type HwCloudSentimentReq
- type HwCloudSentimentReqLang
- type HwCloudSentimentReqLangEnum
- type HwCloudSentimentResp
- type IntentReq
- type IntentReqLang
- type IntentReqLangEnum
- type IntentResult
- type KeywordExtractReq
- type KeywordExtractReqLang
- type KeywordExtractReqLangEnum
- type LanguageDetectionReq
- type LinkedEntity
- type NamedEntity
- type NerRequest
- type NerRequestLang
- type NerRequestLangEnum
- type PostDomainNerRequest
- type PostDomainNerRequestDomain
- type PostDomainNerRequestDomainEnum
- type PostDomainNerRequestLang
- type PostDomainNerRequestLangEnum
- type PostEntityLinkingRequest
- type PostEntityLinkingRequestLang
- type PostEntityLinkingRequestLangEnum
- type PostEventExtractionReq
- type PostMultiGainedSegmentResponseItem
- type PostMultiGainedSegmentResponseItemCopy
- type PostMultiGainedSegmentResponseItemCopyType
- type PostMultiGainedSegmentResponseItemCopyTypeEnum
- type PostMultiGainedSegmentResponseItemType
- type PostMultiGainedSegmentResponseItemTypeEnum
- type PostMultiGrainedSegmentReq
- type PostMultiGrainedSegmentReqGranularity
- type PostMultiGrainedSegmentReqGranularityEnum
- type PostMultiGrainedSegmentReqLang
- type PostMultiGrainedSegmentReqLangEnum
- type PostSentenceEmbeddingReq
- type PostSentenceEmbeddingReqDomain
- type PostSentenceEmbeddingReqDomainEnum
- type RunAspectSentimentAdvanceRequest
- type RunAspectSentimentAdvanceResponse
- type RunAspectSentimentRequest
- type RunAspectSentimentResponse
- type RunClassificationRequest
- type RunClassificationResponse
- type RunDependencyParserRequest
- type RunDependencyParserResponse
- type RunDocClassificationRequest
- type RunDocClassificationResponse
- type RunDomainSentimentRequest
- type RunDomainSentimentResponse
- type RunEntityLinkingRequest
- type RunEntityLinkingResponse
- type RunEntitySentimentRequest
- type RunEntitySentimentResponse
- type RunEventExtractionRequest
- type RunEventExtractionResponse
- type RunFileTranslationRequest
- type RunFileTranslationResponse
- type RunGetFileTranslationResultRequest
- type RunGetFileTranslationResultResponse
- type RunKeywordExtractRequest
- type RunKeywordExtractResponse
- type RunLanguageDetectionRequest
- type RunLanguageDetectionResponse
- type RunMultiGrainedSegmentRequest
- type RunMultiGrainedSegmentResponse
- type RunNerDomainRequest
- type RunNerDomainResponse
- type RunNerRequest
- type RunNerResponse
- type RunPoemRequest
- type RunPoemResponse
- type RunSegmentRequest
- type RunSegmentResponse
- type RunSemanticParserRequest
- type RunSemanticParserResponse
- type RunSentenceEmbeddingRequest
- type RunSentenceEmbeddingResponse
- type RunSentimentRequest
- type RunSentimentResponse
- type RunSummaryDomainRequest
- type RunSummaryDomainResponse
- type RunSummaryRequest
- type RunSummaryResponse
- type RunTextSimilarityAdvanceRequest
- type RunTextSimilarityAdvanceResponse
- type RunTextSimilarityRequest
- type RunTextSimilarityResponse
- type RunTextTranslationRequest
- type RunTextTranslationResponse
- type SegmentRequest
- type SegmentRequestCriterion
- type SegmentRequestCriterionEnum
- type SegmentRequestLang
- type SegmentRequestLangEnum
- type SegmentRequestPosSwitch
- type SegmentRequestPosSwitchEnum
- type Slot
- type SummaryDomainReq
- type SummaryDomainReqLang
- type SummaryDomainReqLangEnum
- type SummaryDomainReqType
- type SummaryDomainReqTypeEnum
- type SummaryReq
- type SummaryReqLang
- type SummaryReqLangEnum
- type TextSimilarityAdvanceRequest
- type TextSimilarityAdvanceRequestLang
- type TextSimilarityAdvanceRequestLangEnum
- type TextSimilarityRequest
- type TextSimilarityRequestLang
- type TextSimilarityRequestLangEnum
- type TextTranslationReq
- type TextTranslationReqFrom
- type TextTranslationReqFromEnum
- type TextTranslationReqScene
- type TextTranslationReqSceneEnum
- type TextTranslationReqTo
- type TextTranslationReqToEnum
- type Word
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AspectAdvanceOpinion ¶
type AspectAdvanceOpinion struct { AspectCategory string `json:"aspect_category"` Label int32 `json:"label"` Confidence *float32 `json:"confidence,omitempty"` AspectTerm string `json:"aspect_term"` OpinionTerm string `json:"opinion_term"` Span []int32 `json:"span"` Tag *string `json:"tag,omitempty"` }
属性观点列表
func (AspectAdvanceOpinion) String ¶
func (o AspectAdvanceOpinion) String() string
type AspectOpinion ¶
type AspectOpinion struct { AspectCategory string `json:"aspect_category"` AspectTerm string `json:"aspect_term"` OpinionTerm string `json:"opinion_term"` Span []int32 `json:"span"` Label int32 `json:"label"` Confidence *float32 `json:"confidence,omitempty"` Tag *string `json:"tag,omitempty"` }
属性观点列表
func (AspectOpinion) String ¶
func (o AspectOpinion) String() string
type AspectSentimentAdvanceRequest ¶
type AspectSentimentAdvanceRequest struct { Content string `json:"content"` Type AspectSentimentAdvanceRequestType `json:"type"` }
func (AspectSentimentAdvanceRequest) String ¶
func (o AspectSentimentAdvanceRequest) String() string
type AspectSentimentAdvanceRequestType ¶
type AspectSentimentAdvanceRequestType struct {
// contains filtered or unexported fields
}
func (AspectSentimentAdvanceRequestType) MarshalJSON ¶
func (c AspectSentimentAdvanceRequestType) MarshalJSON() ([]byte, error)
func (*AspectSentimentAdvanceRequestType) UnmarshalJSON ¶
func (c *AspectSentimentAdvanceRequestType) UnmarshalJSON(b []byte) error
type AspectSentimentAdvanceRequestTypeEnum ¶
type AspectSentimentAdvanceRequestTypeEnum struct { E_1 AspectSentimentAdvanceRequestType E_2 AspectSentimentAdvanceRequestType }
func GetAspectSentimentAdvanceRequestTypeEnum ¶
func GetAspectSentimentAdvanceRequestTypeEnum() AspectSentimentAdvanceRequestTypeEnum
type AspectSentimentRequest ¶
type AspectSentimentRequest struct { Content string `json:"content"` Type AspectSentimentRequestType `json:"type"` }
func (AspectSentimentRequest) String ¶
func (o AspectSentimentRequest) String() string
type AspectSentimentRequestType ¶
type AspectSentimentRequestType struct {
// contains filtered or unexported fields
}
func (AspectSentimentRequestType) MarshalJSON ¶
func (c AspectSentimentRequestType) MarshalJSON() ([]byte, error)
func (*AspectSentimentRequestType) UnmarshalJSON ¶
func (c *AspectSentimentRequestType) UnmarshalJSON(b []byte) error
type AspectSentimentRequestTypeEnum ¶
type AspectSentimentRequestTypeEnum struct {
E_1 AspectSentimentRequestType
}
func GetAspectSentimentRequestTypeEnum ¶
func GetAspectSentimentRequestTypeEnum() AspectSentimentRequestTypeEnum
type ClassificationReq ¶
type ClassificationReq struct { Content string `json:"content"` Domain *ClassificationReqDomain `json:"domain,omitempty"` }
func (ClassificationReq) String ¶
func (o ClassificationReq) String() string
type ClassificationReqDomain ¶
type ClassificationReqDomain struct {
// contains filtered or unexported fields
}
func (ClassificationReqDomain) MarshalJSON ¶
func (c ClassificationReqDomain) MarshalJSON() ([]byte, error)
func (*ClassificationReqDomain) UnmarshalJSON ¶
func (c *ClassificationReqDomain) UnmarshalJSON(b []byte) error
type ClassificationReqDomainEnum ¶
type ClassificationReqDomainEnum struct {
E_1 ClassificationReqDomain
}
func GetClassificationReqDomainEnum ¶
func GetClassificationReqDomainEnum() ClassificationReqDomainEnum
type ClassificationResult ¶
type ClassificationResult struct { Content string `json:"content"` Label int32 `json:"label"` Confidence float32 `json:"confidence"` }
result字段数据结构说明
func (ClassificationResult) String ¶
func (o ClassificationResult) String() string
type CreatePoem ¶
type CreatePoem struct { Title string `json:"title"` Type CreatePoemType `json:"type"` Acrostic *bool `json:"acrostic,omitempty"` }
func (CreatePoem) String ¶
func (o CreatePoem) String() string
type CreatePoemType ¶
type CreatePoemType struct {
// contains filtered or unexported fields
}
func (CreatePoemType) MarshalJSON ¶
func (c CreatePoemType) MarshalJSON() ([]byte, error)
func (*CreatePoemType) UnmarshalJSON ¶
func (c *CreatePoemType) UnmarshalJSON(b []byte) error
type CreatePoemTypeEnum ¶
type CreatePoemTypeEnum struct { E_0 CreatePoemType E_1 CreatePoemType E_2 CreatePoemType E_3 CreatePoemType }
func GetCreatePoemTypeEnum ¶
func GetCreatePoemTypeEnum() CreatePoemTypeEnum
type DependencyParserRequest ¶
type DependencyParserRequest struct { Text string `json:"text"` Lang *DependencyParserRequestLang `json:"lang,omitempty"` }
依存句法分析请求体
func (DependencyParserRequest) String ¶
func (o DependencyParserRequest) String() string
type DependencyParserRequestLang ¶
type DependencyParserRequestLang struct {
// contains filtered or unexported fields
}
func (DependencyParserRequestLang) MarshalJSON ¶
func (c DependencyParserRequestLang) MarshalJSON() ([]byte, error)
func (*DependencyParserRequestLang) UnmarshalJSON ¶
func (c *DependencyParserRequestLang) UnmarshalJSON(b []byte) error
type DependencyParserRequestLangEnum ¶
type DependencyParserRequestLangEnum struct {
ZH DependencyParserRequestLang
}
func GetDependencyParserRequestLangEnum ¶
func GetDependencyParserRequestLangEnum() DependencyParserRequestLangEnum
type DependencyParserWord ¶
type DependencyParserWord struct { Id int32 `json:"id"` Word string `json:"word"` HeadWordId int32 `json:"head_word_id"` Pos string `json:"pos"` DependencyLabel DependencyParserWordDependencyLabel `json:"dependency_label"` }
依存句法分析结果词汇单元结构体
func (DependencyParserWord) String ¶
func (o DependencyParserWord) String() string
type DependencyParserWordDependencyLabel ¶
type DependencyParserWordDependencyLabel struct {
// contains filtered or unexported fields
}
func (DependencyParserWordDependencyLabel) MarshalJSON ¶
func (c DependencyParserWordDependencyLabel) MarshalJSON() ([]byte, error)
func (*DependencyParserWordDependencyLabel) UnmarshalJSON ¶
func (c *DependencyParserWordDependencyLabel) UnmarshalJSON(b []byte) error
type DependencyParserWordDependencyLabelEnum ¶
type DependencyParserWordDependencyLabelEnum struct { ROOT DependencyParserWordDependencyLabel SASUBJ_OBJ DependencyParserWordDependencyLabel SASUBJ DependencyParserWordDependencyLabel DFSUBJ DependencyParserWordDependencyLabel SUBJ DependencyParserWordDependencyLabel SUBJ_IN DependencyParserWordDependencyLabel OBJ DependencyParserWordDependencyLabel PRED DependencyParserWordDependencyLabel ATT DependencyParserWordDependencyLabel ADV DependencyParserWordDependencyLabel CMP DependencyParserWordDependencyLabel COO DependencyParserWordDependencyLabel POBJ DependencyParserWordDependencyLabel IOBJ DependencyParserWordDependencyLabel DE DependencyParserWordDependencyLabel ADJCT DependencyParserWordDependencyLabel APP DependencyParserWordDependencyLabel EXP DependencyParserWordDependencyLabel PUNC DependencyParserWordDependencyLabel FRAG DependencyParserWordDependencyLabel REPET DependencyParserWordDependencyLabel }
func GetDependencyParserWordDependencyLabelEnum ¶
func GetDependencyParserWordDependencyLabelEnum() DependencyParserWordDependencyLabelEnum
type DocumentClassificationReq ¶
type DocumentClassificationReq struct { Content string `json:"content"` Lang *DocumentClassificationReqLang `json:"lang,omitempty"` }
func (DocumentClassificationReq) String ¶
func (o DocumentClassificationReq) String() string
type DocumentClassificationReqLang ¶
type DocumentClassificationReqLang struct {
// contains filtered or unexported fields
}
func (DocumentClassificationReqLang) MarshalJSON ¶
func (c DocumentClassificationReqLang) MarshalJSON() ([]byte, error)
func (*DocumentClassificationReqLang) UnmarshalJSON ¶
func (c *DocumentClassificationReqLang) UnmarshalJSON(b []byte) error
type DocumentClassificationReqLangEnum ¶
type DocumentClassificationReqLangEnum struct {
ZH DocumentClassificationReqLang
}
func GetDocumentClassificationReqLangEnum ¶
func GetDocumentClassificationReqLangEnum() DocumentClassificationReqLangEnum
type DomainNamedEntity ¶
type DomainNamedEntity struct { Word string `json:"word"` Tag string `json:"tag"` Offset int32 `json:"offset"` Len int32 `json:"len"` }
命名实体类
func (DomainNamedEntity) String ¶
func (o DomainNamedEntity) String() string
type DomainSentimentReq ¶
type DomainSentimentReq struct { Content string `json:"content"` Type *DomainSentimentReqType `json:"type,omitempty"` }
请求消息
func (DomainSentimentReq) String ¶
func (o DomainSentimentReq) String() string
type DomainSentimentReqType ¶
type DomainSentimentReqType struct {
// contains filtered or unexported fields
}
func (DomainSentimentReqType) MarshalJSON ¶
func (c DomainSentimentReqType) MarshalJSON() ([]byte, error)
func (*DomainSentimentReqType) UnmarshalJSON ¶
func (c *DomainSentimentReqType) UnmarshalJSON(b []byte) error
type DomainSentimentReqTypeEnum ¶
type DomainSentimentReqTypeEnum struct { E_0 DomainSentimentReqType E_1 DomainSentimentReqType E_2 DomainSentimentReqType }
func GetDomainSentimentReqTypeEnum ¶
func GetDomainSentimentReqTypeEnum() DomainSentimentReqTypeEnum
type EntitySentimentReq ¶
type EntitySentimentReq struct { Content string `json:"content"` Entity string `json:"entity"` Type int32 `json:"type"` }
func (EntitySentimentReq) String ¶
func (o EntitySentimentReq) String() string
type EventExtractionResponseItem ¶
type EventExtractionResponseItem struct { Argument []EventExtractionResponseItemArgument `json:"argument"` EventTrigger string `json:"event_trigger"` EventType *string `json:"event_type,omitempty"` TriggerSpan []int32 `json:"trigger_span"` }
events数据结构
func (EventExtractionResponseItem) String ¶
func (o EventExtractionResponseItem) String() string
type EventExtractionResponseItemArgument ¶
type EventExtractionResponseItemArgument struct { Role string `json:"role"` Span []int32 `json:"span"` Word string `json:"word"` }
事件元素
func (EventExtractionResponseItemArgument) String ¶
func (o EventExtractionResponseItemArgument) String() string
type FileTranslationReq ¶
type FileTranslationReq struct { Url string `json:"url"` From FileTranslationReqFrom `json:"from"` To FileTranslationReqTo `json:"to"` Type FileTranslationReqType `json:"type"` }
This is a auto create Body Object
func (FileTranslationReq) String ¶
func (o FileTranslationReq) String() string
type FileTranslationReqFrom ¶
type FileTranslationReqFrom struct {
// contains filtered or unexported fields
}
func (FileTranslationReqFrom) MarshalJSON ¶
func (c FileTranslationReqFrom) MarshalJSON() ([]byte, error)
func (*FileTranslationReqFrom) UnmarshalJSON ¶
func (c *FileTranslationReqFrom) UnmarshalJSON(b []byte) error
type FileTranslationReqFromEnum ¶
type FileTranslationReqFromEnum struct { ZH FileTranslationReqFrom EN FileTranslationReqFrom }
func GetFileTranslationReqFromEnum ¶
func GetFileTranslationReqFromEnum() FileTranslationReqFromEnum
type FileTranslationReqTo ¶
type FileTranslationReqTo struct {
// contains filtered or unexported fields
}
func (FileTranslationReqTo) MarshalJSON ¶
func (c FileTranslationReqTo) MarshalJSON() ([]byte, error)
func (*FileTranslationReqTo) UnmarshalJSON ¶
func (c *FileTranslationReqTo) UnmarshalJSON(b []byte) error
type FileTranslationReqToEnum ¶
type FileTranslationReqToEnum struct { ZH FileTranslationReqTo EN FileTranslationReqTo }
func GetFileTranslationReqToEnum ¶
func GetFileTranslationReqToEnum() FileTranslationReqToEnum
type FileTranslationReqType ¶
type FileTranslationReqType struct {
// contains filtered or unexported fields
}
func (FileTranslationReqType) MarshalJSON ¶
func (c FileTranslationReqType) MarshalJSON() ([]byte, error)
func (*FileTranslationReqType) UnmarshalJSON ¶
func (c *FileTranslationReqType) UnmarshalJSON(b []byte) error
type FileTranslationReqTypeEnum ¶
type FileTranslationReqTypeEnum struct { DOCX FileTranslationReqType PPTX FileTranslationReqType TXT FileTranslationReqType }
func GetFileTranslationReqTypeEnum ¶
func GetFileTranslationReqTypeEnum() FileTranslationReqTypeEnum
type HwCloudSentimentReq ¶
type HwCloudSentimentReq struct { Content string `json:"content"` Lang *HwCloudSentimentReqLang `json:"lang,omitempty"` }
func (HwCloudSentimentReq) String ¶
func (o HwCloudSentimentReq) String() string
type HwCloudSentimentReqLang ¶
type HwCloudSentimentReqLang struct {
// contains filtered or unexported fields
}
func (HwCloudSentimentReqLang) MarshalJSON ¶
func (c HwCloudSentimentReqLang) MarshalJSON() ([]byte, error)
func (*HwCloudSentimentReqLang) UnmarshalJSON ¶
func (c *HwCloudSentimentReqLang) UnmarshalJSON(b []byte) error
type HwCloudSentimentReqLangEnum ¶
type HwCloudSentimentReqLangEnum struct { EN HwCloudSentimentReqLang ZH HwCloudSentimentReqLang }
func GetHwCloudSentimentReqLangEnum ¶
func GetHwCloudSentimentReqLangEnum() HwCloudSentimentReqLangEnum
type HwCloudSentimentResp ¶
type HwCloudSentimentResp struct { Label int32 `json:"label"` Confidence float32 `json:"confidence"` Content string `json:"content"` }
result字段数据结构说明
func (HwCloudSentimentResp) String ¶
func (o HwCloudSentimentResp) String() string
type IntentReq ¶
type IntentReq struct { Lang *IntentReqLang `json:"lang,omitempty"` Text string `json:"text"` }
type IntentReqLang ¶
type IntentReqLang struct {
// contains filtered or unexported fields
}
func (IntentReqLang) MarshalJSON ¶
func (c IntentReqLang) MarshalJSON() ([]byte, error)
func (*IntentReqLang) UnmarshalJSON ¶
func (c *IntentReqLang) UnmarshalJSON(b []byte) error
type IntentReqLangEnum ¶
type IntentReqLangEnum struct {
ZH IntentReqLang
}
func GetIntentReqLangEnum ¶
func GetIntentReqLangEnum() IntentReqLangEnum
type IntentResult ¶
type IntentResult struct { Confidence float32 `json:"confidence"` Label string `json:"label"` Slots []Slot `json:"slots"` Text string `json:"text"` }
func (IntentResult) String ¶
func (o IntentResult) String() string
type KeywordExtractReq ¶
type KeywordExtractReq struct { Text string `json:"text"` Limit *int32 `json:"limit,omitempty"` Lang *KeywordExtractReqLang `json:"lang,omitempty"` }
This is a auto create Body Object
func (KeywordExtractReq) String ¶
func (o KeywordExtractReq) String() string
type KeywordExtractReqLang ¶
type KeywordExtractReqLang struct {
// contains filtered or unexported fields
}
func (KeywordExtractReqLang) MarshalJSON ¶
func (c KeywordExtractReqLang) MarshalJSON() ([]byte, error)
func (*KeywordExtractReqLang) UnmarshalJSON ¶
func (c *KeywordExtractReqLang) UnmarshalJSON(b []byte) error
type KeywordExtractReqLangEnum ¶
type KeywordExtractReqLangEnum struct {
ZH KeywordExtractReqLang
}
func GetKeywordExtractReqLangEnum ¶
func GetKeywordExtractReqLangEnum() KeywordExtractReqLangEnum
type LanguageDetectionReq ¶
type LanguageDetectionReq struct {
Text string `json:"text"`
}
This is a auto create Body Object
func (LanguageDetectionReq) String ¶
func (o LanguageDetectionReq) String() string
type LinkedEntity ¶
type LinkedEntity struct { Mention string `json:"mention"` Offset int32 `json:"offset"` EntityTitle string `json:"entity_title"` }
链接的实体 类
func (LinkedEntity) String ¶
func (o LinkedEntity) String() string
type NamedEntity ¶
type NamedEntity struct { Word string `json:"word"` Tag string `json:"tag"` Offset int32 `json:"offset"` Len int32 `json:"len"` }
命名实体。
func (NamedEntity) String ¶
func (o NamedEntity) String() string
type NerRequest ¶
type NerRequest struct { Text string `json:"text"` Lang *NerRequestLang `json:"lang,omitempty"` }
命名实体识别post请求体
func (NerRequest) String ¶
func (o NerRequest) String() string
type NerRequestLang ¶
type NerRequestLang struct {
// contains filtered or unexported fields
}
func (NerRequestLang) MarshalJSON ¶
func (c NerRequestLang) MarshalJSON() ([]byte, error)
func (*NerRequestLang) UnmarshalJSON ¶
func (c *NerRequestLang) UnmarshalJSON(b []byte) error
type NerRequestLangEnum ¶
type NerRequestLangEnum struct { ZH NerRequestLang EN NerRequestLang ES NerRequestLang }
func GetNerRequestLangEnum ¶
func GetNerRequestLangEnum() NerRequestLangEnum
type PostDomainNerRequest ¶
type PostDomainNerRequest struct { Text string `json:"text"` Lang *PostDomainNerRequestLang `json:"lang,omitempty"` Domain *PostDomainNerRequestDomain `json:"domain,omitempty"` }
命名实体识别post请求体
func (PostDomainNerRequest) String ¶
func (o PostDomainNerRequest) String() string
type PostDomainNerRequestDomain ¶
type PostDomainNerRequestDomain struct {
// contains filtered or unexported fields
}
func (PostDomainNerRequestDomain) MarshalJSON ¶
func (c PostDomainNerRequestDomain) MarshalJSON() ([]byte, error)
func (*PostDomainNerRequestDomain) UnmarshalJSON ¶
func (c *PostDomainNerRequestDomain) UnmarshalJSON(b []byte) error
type PostDomainNerRequestDomainEnum ¶
type PostDomainNerRequestDomainEnum struct { GENERAL PostDomainNerRequestDomain BUSINESS PostDomainNerRequestDomain ENTERTAINMENT PostDomainNerRequestDomain }
func GetPostDomainNerRequestDomainEnum ¶
func GetPostDomainNerRequestDomainEnum() PostDomainNerRequestDomainEnum
type PostDomainNerRequestLang ¶
type PostDomainNerRequestLang struct {
// contains filtered or unexported fields
}
func (PostDomainNerRequestLang) MarshalJSON ¶
func (c PostDomainNerRequestLang) MarshalJSON() ([]byte, error)
func (*PostDomainNerRequestLang) UnmarshalJSON ¶
func (c *PostDomainNerRequestLang) UnmarshalJSON(b []byte) error
type PostDomainNerRequestLangEnum ¶
type PostDomainNerRequestLangEnum struct {
ZH PostDomainNerRequestLang
}
func GetPostDomainNerRequestLangEnum ¶
func GetPostDomainNerRequestLangEnum() PostDomainNerRequestLangEnum
type PostEntityLinkingRequest ¶
type PostEntityLinkingRequest struct { Text string `json:"text"` Lang *PostEntityLinkingRequestLang `json:"lang,omitempty"` }
实体链接post请求体
func (PostEntityLinkingRequest) String ¶
func (o PostEntityLinkingRequest) String() string
type PostEntityLinkingRequestLang ¶
type PostEntityLinkingRequestLang struct {
// contains filtered or unexported fields
}
func (PostEntityLinkingRequestLang) MarshalJSON ¶
func (c PostEntityLinkingRequestLang) MarshalJSON() ([]byte, error)
func (*PostEntityLinkingRequestLang) UnmarshalJSON ¶
func (c *PostEntityLinkingRequestLang) UnmarshalJSON(b []byte) error
type PostEntityLinkingRequestLangEnum ¶
type PostEntityLinkingRequestLangEnum struct {
ZH PostEntityLinkingRequestLang
}
func GetPostEntityLinkingRequestLangEnum ¶
func GetPostEntityLinkingRequestLangEnum() PostEntityLinkingRequestLangEnum
type PostEventExtractionReq ¶
type PostEventExtractionReq struct {
Text string `json:"text"`
}
This is a auto create Body Object
func (PostEventExtractionReq) String ¶
func (o PostEventExtractionReq) String() string
type PostMultiGainedSegmentResponseItem ¶
type PostMultiGainedSegmentResponseItem struct { Content string `json:"content"` Type PostMultiGainedSegmentResponseItemType `json:"type"` SubContents *[]PostMultiGainedSegmentResponseItemCopy `json:"sub_contents,omitempty"` }
多粒度分词结果中的词汇节点
func (PostMultiGainedSegmentResponseItem) String ¶
func (o PostMultiGainedSegmentResponseItem) String() string
type PostMultiGainedSegmentResponseItemCopy ¶
type PostMultiGainedSegmentResponseItemCopy struct { Content string `json:"content"` Type PostMultiGainedSegmentResponseItemCopyType `json:"type"` SubContents *[]PostMultiGainedSegmentResponseItem `json:"sub_contents,omitempty"` }
多粒度分词结果中的词汇节点
func (PostMultiGainedSegmentResponseItemCopy) String ¶
func (o PostMultiGainedSegmentResponseItemCopy) String() string
type PostMultiGainedSegmentResponseItemCopyType ¶
type PostMultiGainedSegmentResponseItemCopyType struct {
// contains filtered or unexported fields
}
func (PostMultiGainedSegmentResponseItemCopyType) MarshalJSON ¶
func (c PostMultiGainedSegmentResponseItemCopyType) MarshalJSON() ([]byte, error)
func (*PostMultiGainedSegmentResponseItemCopyType) UnmarshalJSON ¶
func (c *PostMultiGainedSegmentResponseItemCopyType) UnmarshalJSON(b []byte) error
type PostMultiGainedSegmentResponseItemCopyTypeEnum ¶
type PostMultiGainedSegmentResponseItemCopyTypeEnum struct { WORD PostMultiGainedSegmentResponseItemCopyType CHAR PostMultiGainedSegmentResponseItemCopyType }
func GetPostMultiGainedSegmentResponseItemCopyTypeEnum ¶
func GetPostMultiGainedSegmentResponseItemCopyTypeEnum() PostMultiGainedSegmentResponseItemCopyTypeEnum
type PostMultiGainedSegmentResponseItemType ¶
type PostMultiGainedSegmentResponseItemType struct {
// contains filtered or unexported fields
}
func (PostMultiGainedSegmentResponseItemType) MarshalJSON ¶
func (c PostMultiGainedSegmentResponseItemType) MarshalJSON() ([]byte, error)
func (*PostMultiGainedSegmentResponseItemType) UnmarshalJSON ¶
func (c *PostMultiGainedSegmentResponseItemType) UnmarshalJSON(b []byte) error
type PostMultiGainedSegmentResponseItemTypeEnum ¶
type PostMultiGainedSegmentResponseItemTypeEnum struct { WORD PostMultiGainedSegmentResponseItemType CHAR PostMultiGainedSegmentResponseItemType }
func GetPostMultiGainedSegmentResponseItemTypeEnum ¶
func GetPostMultiGainedSegmentResponseItemTypeEnum() PostMultiGainedSegmentResponseItemTypeEnum
type PostMultiGrainedSegmentReq ¶
type PostMultiGrainedSegmentReq struct { Text string `json:"text"` Lang *PostMultiGrainedSegmentReqLang `json:"lang,omitempty"` Granularity *PostMultiGrainedSegmentReqGranularity `json:"granularity,omitempty"` }
This is a auto create Body Object
func (PostMultiGrainedSegmentReq) String ¶
func (o PostMultiGrainedSegmentReq) String() string
type PostMultiGrainedSegmentReqGranularity ¶
type PostMultiGrainedSegmentReqGranularity struct {
// contains filtered or unexported fields
}
func (PostMultiGrainedSegmentReqGranularity) MarshalJSON ¶
func (c PostMultiGrainedSegmentReqGranularity) MarshalJSON() ([]byte, error)
func (*PostMultiGrainedSegmentReqGranularity) UnmarshalJSON ¶
func (c *PostMultiGrainedSegmentReqGranularity) UnmarshalJSON(b []byte) error
type PostMultiGrainedSegmentReqGranularityEnum ¶
type PostMultiGrainedSegmentReqGranularityEnum struct { E_1 PostMultiGrainedSegmentReqGranularity E_2 PostMultiGrainedSegmentReqGranularity E_0 PostMultiGrainedSegmentReqGranularity }
func GetPostMultiGrainedSegmentReqGranularityEnum ¶
func GetPostMultiGrainedSegmentReqGranularityEnum() PostMultiGrainedSegmentReqGranularityEnum
type PostMultiGrainedSegmentReqLang ¶
type PostMultiGrainedSegmentReqLang struct {
// contains filtered or unexported fields
}
func (PostMultiGrainedSegmentReqLang) MarshalJSON ¶
func (c PostMultiGrainedSegmentReqLang) MarshalJSON() ([]byte, error)
func (*PostMultiGrainedSegmentReqLang) UnmarshalJSON ¶
func (c *PostMultiGrainedSegmentReqLang) UnmarshalJSON(b []byte) error
type PostMultiGrainedSegmentReqLangEnum ¶
type PostMultiGrainedSegmentReqLangEnum struct {
ZH PostMultiGrainedSegmentReqLang
}
func GetPostMultiGrainedSegmentReqLangEnum ¶
func GetPostMultiGrainedSegmentReqLangEnum() PostMultiGrainedSegmentReqLangEnum
type PostSentenceEmbeddingReq ¶
type PostSentenceEmbeddingReq struct { Sentences []string `json:"sentences"` Domain *PostSentenceEmbeddingReqDomain `json:"domain,omitempty"` }
命名实体识别post请求体
func (PostSentenceEmbeddingReq) String ¶
func (o PostSentenceEmbeddingReq) String() string
type PostSentenceEmbeddingReqDomain ¶
type PostSentenceEmbeddingReqDomain struct {
// contains filtered or unexported fields
}
func (PostSentenceEmbeddingReqDomain) MarshalJSON ¶
func (c PostSentenceEmbeddingReqDomain) MarshalJSON() ([]byte, error)
func (*PostSentenceEmbeddingReqDomain) UnmarshalJSON ¶
func (c *PostSentenceEmbeddingReqDomain) UnmarshalJSON(b []byte) error
type PostSentenceEmbeddingReqDomainEnum ¶
type PostSentenceEmbeddingReqDomainEnum struct {
GENERAL PostSentenceEmbeddingReqDomain
}
func GetPostSentenceEmbeddingReqDomainEnum ¶
func GetPostSentenceEmbeddingReqDomainEnum() PostSentenceEmbeddingReqDomainEnum
type RunAspectSentimentAdvanceRequest ¶
type RunAspectSentimentAdvanceRequest struct {
Body *AspectSentimentAdvanceRequest `json:"body,omitempty"`
}
Request Object
func (RunAspectSentimentAdvanceRequest) String ¶
func (o RunAspectSentimentAdvanceRequest) String() string
type RunAspectSentimentAdvanceResponse ¶
type RunAspectSentimentAdvanceResponse struct { Content *string `json:"content,omitempty"` Label *int32 `json:"label,omitempty"` Confidence *float32 `json:"confidence,omitempty"` AspectOpinions *[]AspectAdvanceOpinion `json:"aspect_opinions,omitempty"` ErrorCode *string `json:"error_code,omitempty"` ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunAspectSentimentAdvanceResponse) String ¶
func (o RunAspectSentimentAdvanceResponse) String() string
type RunAspectSentimentRequest ¶
type RunAspectSentimentRequest struct {
Body *AspectSentimentRequest `json:"body,omitempty"`
}
Request Object
func (RunAspectSentimentRequest) String ¶
func (o RunAspectSentimentRequest) String() string
type RunAspectSentimentResponse ¶
type RunAspectSentimentResponse struct { Text *string `json:"text,omitempty"` Label *int32 `json:"label,omitempty"` Confidence *float32 `json:"confidence,omitempty"` AspectOpinions *[]AspectOpinion `json:"aspect_opinions,omitempty"` ErrorCode *string `json:"error_code,omitempty"` ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunAspectSentimentResponse) String ¶
func (o RunAspectSentimentResponse) String() string
type RunClassificationRequest ¶
type RunClassificationRequest struct {
Body *ClassificationReq `json:"body,omitempty"`
}
Request Object
func (RunClassificationRequest) String ¶
func (o RunClassificationRequest) String() string
type RunClassificationResponse ¶
type RunClassificationResponse struct { Result *ClassificationResult `json:"result,omitempty"` ErrorCode *string `json:"error_code,omitempty"` ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunClassificationResponse) String ¶
func (o RunClassificationResponse) String() string
type RunDependencyParserRequest ¶
type RunDependencyParserRequest struct {
Body *DependencyParserRequest `json:"body,omitempty"`
}
Request Object
func (RunDependencyParserRequest) String ¶
func (o RunDependencyParserRequest) String() string
type RunDependencyParserResponse ¶
type RunDependencyParserResponse struct { Words *[]DependencyParserWord `json:"words,omitempty"` ErrorCode *string `json:"error_code,omitempty"` ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunDependencyParserResponse) String ¶
func (o RunDependencyParserResponse) String() string
type RunDocClassificationRequest ¶
type RunDocClassificationRequest struct {
Body *DocumentClassificationReq `json:"body,omitempty"`
}
Request Object
func (RunDocClassificationRequest) String ¶
func (o RunDocClassificationRequest) String() string
type RunDocClassificationResponse ¶
type RunDocClassificationResponse struct { Result *interface{} `json:"result,omitempty"` ErrorCode *string `json:"error_code,omitempty"` ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunDocClassificationResponse) String ¶
func (o RunDocClassificationResponse) String() string
type RunDomainSentimentRequest ¶
type RunDomainSentimentRequest struct {
Body *DomainSentimentReq `json:"body,omitempty"`
}
Request Object
func (RunDomainSentimentRequest) String ¶
func (o RunDomainSentimentRequest) String() string
type RunDomainSentimentResponse ¶
type RunDomainSentimentResponse struct { Result *HwCloudSentimentResp `json:"result,omitempty"` ErrorCode *string `json:"error_code,omitempty"` ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunDomainSentimentResponse) String ¶
func (o RunDomainSentimentResponse) String() string
type RunEntityLinkingRequest ¶
type RunEntityLinkingRequest struct {
Body *PostEntityLinkingRequest `json:"body,omitempty"`
}
Request Object
func (RunEntityLinkingRequest) String ¶
func (o RunEntityLinkingRequest) String() string
type RunEntityLinkingResponse ¶
type RunEntityLinkingResponse struct { Entities *[]LinkedEntity `json:"entities,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunEntityLinkingResponse) String ¶
func (o RunEntityLinkingResponse) String() string
type RunEntitySentimentRequest ¶
type RunEntitySentimentRequest struct {
Body *EntitySentimentReq `json:"body,omitempty"`
}
Request Object
func (RunEntitySentimentRequest) String ¶
func (o RunEntitySentimentRequest) String() string
type RunEntitySentimentResponse ¶
type RunEntitySentimentResponse struct { Content *string `json:"content,omitempty"` Entity *string `json:"entity,omitempty"` Label *int32 `json:"label,omitempty"` Confidence *float64 `json:"confidence,omitempty"` ErrorCode *string `json:"error_code,omitempty"` ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunEntitySentimentResponse) String ¶
func (o RunEntitySentimentResponse) String() string
type RunEventExtractionRequest ¶
type RunEventExtractionRequest struct {
Body *PostEventExtractionReq `json:"body,omitempty"`
}
Request Object
func (RunEventExtractionRequest) String ¶
func (o RunEventExtractionRequest) String() string
type RunEventExtractionResponse ¶
type RunEventExtractionResponse struct { Events *[]EventExtractionResponseItem `json:"events,omitempty"` ErrorCode *string `json:"error_code,omitempty"` ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunEventExtractionResponse) String ¶
func (o RunEventExtractionResponse) String() string
type RunFileTranslationRequest ¶
type RunFileTranslationRequest struct {
Body *FileTranslationReq `json:"body,omitempty"`
}
Request Object
func (RunFileTranslationRequest) String ¶
func (o RunFileTranslationRequest) String() string
type RunFileTranslationResponse ¶
type RunFileTranslationResponse struct { JobId *string `json:"job_id,omitempty"` ErrorCode *string `json:"error_code,omitempty"` ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunFileTranslationResponse) String ¶
func (o RunFileTranslationResponse) String() string
type RunGetFileTranslationResultRequest ¶
type RunGetFileTranslationResultRequest struct {
JobId string `json:"job_id"`
}
Request Object
func (RunGetFileTranslationResultRequest) String ¶
func (o RunGetFileTranslationResultRequest) String() string
type RunGetFileTranslationResultResponse ¶
type RunGetFileTranslationResultResponse struct { Status *string `json:"status,omitempty"` Url *string `json:"url,omitempty"` ErrorCode *string `json:"error_code,omitempty"` ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunGetFileTranslationResultResponse) String ¶
func (o RunGetFileTranslationResultResponse) String() string
type RunKeywordExtractRequest ¶
type RunKeywordExtractRequest struct {
Body *KeywordExtractReq `json:"body,omitempty"`
}
Request Object
func (RunKeywordExtractRequest) String ¶
func (o RunKeywordExtractRequest) String() string
type RunKeywordExtractResponse ¶
type RunKeywordExtractResponse struct { Words *[]string `json:"words,omitempty"` ErrorCode *string `json:"error_code,omitempty"` ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunKeywordExtractResponse) String ¶
func (o RunKeywordExtractResponse) String() string
type RunLanguageDetectionRequest ¶
type RunLanguageDetectionRequest struct {
Body *LanguageDetectionReq `json:"body,omitempty"`
}
Request Object
func (RunLanguageDetectionRequest) String ¶
func (o RunLanguageDetectionRequest) String() string
type RunLanguageDetectionResponse ¶
type RunLanguageDetectionResponse struct { DetectedLanguage *string `json:"detected_language,omitempty"` ErrorCode *string `json:"error_code,omitempty"` ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunLanguageDetectionResponse) String ¶
func (o RunLanguageDetectionResponse) String() string
type RunMultiGrainedSegmentRequest ¶
type RunMultiGrainedSegmentRequest struct {
Body *PostMultiGrainedSegmentReq `json:"body,omitempty"`
}
Request Object
func (RunMultiGrainedSegmentRequest) String ¶
func (o RunMultiGrainedSegmentRequest) String() string
type RunMultiGrainedSegmentResponse ¶
type RunMultiGrainedSegmentResponse struct { Result *[]PostMultiGainedSegmentResponseItem `json:"result,omitempty"` ErrorCode *string `json:"error_code,omitempty"` ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunMultiGrainedSegmentResponse) String ¶
func (o RunMultiGrainedSegmentResponse) String() string
type RunNerDomainRequest ¶
type RunNerDomainRequest struct {
Body *PostDomainNerRequest `json:"body,omitempty"`
}
Request Object
func (RunNerDomainRequest) String ¶
func (o RunNerDomainRequest) String() string
type RunNerDomainResponse ¶
type RunNerDomainResponse struct { NamedEntities *[]DomainNamedEntity `json:"named_entities,omitempty"` ErrorCode *string `json:"error_code,omitempty"` ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunNerDomainResponse) String ¶
func (o RunNerDomainResponse) String() string
type RunNerRequest ¶
type RunNerRequest struct {
Body *NerRequest `json:"body,omitempty"`
}
Request Object
func (RunNerRequest) String ¶
func (o RunNerRequest) String() string
type RunNerResponse ¶
type RunNerResponse struct { NamedEntities *[]NamedEntity `json:"named_entities,omitempty"` ErrorCode *string `json:"error_code,omitempty"` ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunNerResponse) String ¶
func (o RunNerResponse) String() string
type RunPoemRequest ¶
type RunPoemRequest struct {
Body *CreatePoem `json:"body,omitempty"`
}
Request Object
func (RunPoemRequest) String ¶
func (o RunPoemRequest) String() string
type RunPoemResponse ¶
type RunPoemResponse struct { Poem *[]string `json:"poem,omitempty"` ErrorCode *string `json:"error_code,omitempty"` ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunPoemResponse) String ¶
func (o RunPoemResponse) String() string
type RunSegmentRequest ¶
type RunSegmentRequest struct {
Body *SegmentRequest `json:"body,omitempty"`
}
Request Object
func (RunSegmentRequest) String ¶
func (o RunSegmentRequest) String() string
type RunSegmentResponse ¶
type RunSegmentResponse struct { Words *[]Word `json:"words,omitempty"` ErrorCode *string `json:"error_code,omitempty"` ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunSegmentResponse) String ¶
func (o RunSegmentResponse) String() string
type RunSemanticParserRequest ¶
type RunSemanticParserRequest struct {
Body *IntentReq `json:"body,omitempty"`
}
Request Object
func (RunSemanticParserRequest) String ¶
func (o RunSemanticParserRequest) String() string
type RunSemanticParserResponse ¶
type RunSemanticParserResponse struct { Result *IntentResult `json:"result,omitempty"` ErrorCode *string `json:"error_code,omitempty"` ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunSemanticParserResponse) String ¶
func (o RunSemanticParserResponse) String() string
type RunSentenceEmbeddingRequest ¶
type RunSentenceEmbeddingRequest struct {
Body *PostSentenceEmbeddingReq `json:"body,omitempty"`
}
Request Object
func (RunSentenceEmbeddingRequest) String ¶
func (o RunSentenceEmbeddingRequest) String() string
type RunSentenceEmbeddingResponse ¶
type RunSentenceEmbeddingResponse struct { Vectors *[][]float32 `json:"vectors,omitempty"` ErrorCode *string `json:"error_code,omitempty"` ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunSentenceEmbeddingResponse) String ¶
func (o RunSentenceEmbeddingResponse) String() string
type RunSentimentRequest ¶
type RunSentimentRequest struct {
Body *HwCloudSentimentReq `json:"body,omitempty"`
}
Request Object
func (RunSentimentRequest) String ¶
func (o RunSentimentRequest) String() string
type RunSentimentResponse ¶
type RunSentimentResponse struct { Result *HwCloudSentimentResp `json:"result,omitempty"` ErrorCode *string `json:"error_code,omitempty"` ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunSentimentResponse) String ¶
func (o RunSentimentResponse) String() string
type RunSummaryDomainRequest ¶
type RunSummaryDomainRequest struct {
Body *SummaryDomainReq `json:"body,omitempty"`
}
Request Object
func (RunSummaryDomainRequest) String ¶
func (o RunSummaryDomainRequest) String() string
type RunSummaryDomainResponse ¶
type RunSummaryDomainResponse struct { Summary *string `json:"summary,omitempty"` ErrorCode *string `json:"error_code,omitempty"` ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunSummaryDomainResponse) String ¶
func (o RunSummaryDomainResponse) String() string
type RunSummaryRequest ¶
type RunSummaryRequest struct {
Body *SummaryReq `json:"body,omitempty"`
}
Request Object
func (RunSummaryRequest) String ¶
func (o RunSummaryRequest) String() string
type RunSummaryResponse ¶
type RunSummaryResponse struct { Summary *string `json:"summary,omitempty"` ErrorCode *string `json:"error_code,omitempty"` ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunSummaryResponse) String ¶
func (o RunSummaryResponse) String() string
type RunTextSimilarityAdvanceRequest ¶
type RunTextSimilarityAdvanceRequest struct {
Body *TextSimilarityAdvanceRequest `json:"body,omitempty"`
}
Request Object
func (RunTextSimilarityAdvanceRequest) String ¶
func (o RunTextSimilarityAdvanceRequest) String() string
type RunTextSimilarityAdvanceResponse ¶
type RunTextSimilarityAdvanceResponse struct { Similarity *float32 `json:"similarity,omitempty"` ErrorCode *string `json:"error_code,omitempty"` ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunTextSimilarityAdvanceResponse) String ¶
func (o RunTextSimilarityAdvanceResponse) String() string
type RunTextSimilarityRequest ¶
type RunTextSimilarityRequest struct {
Body *TextSimilarityRequest `json:"body,omitempty"`
}
Request Object
func (RunTextSimilarityRequest) String ¶
func (o RunTextSimilarityRequest) String() string
type RunTextSimilarityResponse ¶
type RunTextSimilarityResponse struct { Similarity *float32 `json:"similarity,omitempty"` ErrorCode *string `json:"error_code,omitempty"` ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunTextSimilarityResponse) String ¶
func (o RunTextSimilarityResponse) String() string
type RunTextTranslationRequest ¶
type RunTextTranslationRequest struct {
Body *TextTranslationReq `json:"body,omitempty"`
}
Request Object
func (RunTextTranslationRequest) String ¶
func (o RunTextTranslationRequest) String() string
type RunTextTranslationResponse ¶
type RunTextTranslationResponse struct { SrcText *string `json:"src_text,omitempty"` TranslatedText *string `json:"translated_text,omitempty"` ErrorCode *string `json:"error_code,omitempty"` ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunTextTranslationResponse) String ¶
func (o RunTextTranslationResponse) String() string
type SegmentRequest ¶
type SegmentRequest struct { Text string `json:"text"` PosSwitch *SegmentRequestPosSwitch `json:"pos_switch,omitempty"` Lang *SegmentRequestLang `json:"lang,omitempty"` Criterion *SegmentRequestCriterion `json:"criterion,omitempty"` }
分词post请求体
func (SegmentRequest) String ¶
func (o SegmentRequest) String() string
type SegmentRequestCriterion ¶
type SegmentRequestCriterion struct {
// contains filtered or unexported fields
}
func (SegmentRequestCriterion) MarshalJSON ¶
func (c SegmentRequestCriterion) MarshalJSON() ([]byte, error)
func (*SegmentRequestCriterion) UnmarshalJSON ¶
func (c *SegmentRequestCriterion) UnmarshalJSON(b []byte) error
type SegmentRequestCriterionEnum ¶
type SegmentRequestCriterionEnum struct { PKU SegmentRequestCriterion CTB SegmentRequestCriterion }
func GetSegmentRequestCriterionEnum ¶
func GetSegmentRequestCriterionEnum() SegmentRequestCriterionEnum
type SegmentRequestLang ¶
type SegmentRequestLang struct {
// contains filtered or unexported fields
}
func (SegmentRequestLang) MarshalJSON ¶
func (c SegmentRequestLang) MarshalJSON() ([]byte, error)
func (*SegmentRequestLang) UnmarshalJSON ¶
func (c *SegmentRequestLang) UnmarshalJSON(b []byte) error
type SegmentRequestLangEnum ¶
type SegmentRequestLangEnum struct { ZH SegmentRequestLang EN SegmentRequestLang }
func GetSegmentRequestLangEnum ¶
func GetSegmentRequestLangEnum() SegmentRequestLangEnum
type SegmentRequestPosSwitch ¶
type SegmentRequestPosSwitch struct {
// contains filtered or unexported fields
}
func (SegmentRequestPosSwitch) MarshalJSON ¶
func (c SegmentRequestPosSwitch) MarshalJSON() ([]byte, error)
func (*SegmentRequestPosSwitch) UnmarshalJSON ¶
func (c *SegmentRequestPosSwitch) UnmarshalJSON(b []byte) error
type SegmentRequestPosSwitchEnum ¶
type SegmentRequestPosSwitchEnum struct { E_0 SegmentRequestPosSwitch E_1 SegmentRequestPosSwitch }
func GetSegmentRequestPosSwitchEnum ¶
func GetSegmentRequestPosSwitchEnum() SegmentRequestPosSwitchEnum
type Slot ¶
type SummaryDomainReq ¶
type SummaryDomainReq struct { LengthLimit *float32 `json:"length_limit,omitempty"` Title *string `json:"title,omitempty"` Lang *SummaryDomainReqLang `json:"lang,omitempty"` Content string `json:"content"` Type *SummaryDomainReqType `json:"type,omitempty"` }
This is a auto create Body Object
func (SummaryDomainReq) String ¶
func (o SummaryDomainReq) String() string
type SummaryDomainReqLang ¶
type SummaryDomainReqLang struct {
// contains filtered or unexported fields
}
func (SummaryDomainReqLang) MarshalJSON ¶
func (c SummaryDomainReqLang) MarshalJSON() ([]byte, error)
func (*SummaryDomainReqLang) UnmarshalJSON ¶
func (c *SummaryDomainReqLang) UnmarshalJSON(b []byte) error
type SummaryDomainReqLangEnum ¶
type SummaryDomainReqLangEnum struct {
ZH SummaryDomainReqLang
}
func GetSummaryDomainReqLangEnum ¶
func GetSummaryDomainReqLangEnum() SummaryDomainReqLangEnum
type SummaryDomainReqType ¶
type SummaryDomainReqType struct {
// contains filtered or unexported fields
}
func (SummaryDomainReqType) MarshalJSON ¶
func (c SummaryDomainReqType) MarshalJSON() ([]byte, error)
func (*SummaryDomainReqType) UnmarshalJSON ¶
func (c *SummaryDomainReqType) UnmarshalJSON(b []byte) error
type SummaryDomainReqTypeEnum ¶
type SummaryDomainReqTypeEnum struct {
E_0 SummaryDomainReqType
}
func GetSummaryDomainReqTypeEnum ¶
func GetSummaryDomainReqTypeEnum() SummaryDomainReqTypeEnum
type SummaryReq ¶
type SummaryReq struct { Content string `json:"content"` Lang *SummaryReqLang `json:"lang,omitempty"` LengthLimit *float32 `json:"length_limit,omitempty"` Title *string `json:"title,omitempty"` }
func (SummaryReq) String ¶
func (o SummaryReq) String() string
type SummaryReqLang ¶
type SummaryReqLang struct {
// contains filtered or unexported fields
}
func (SummaryReqLang) MarshalJSON ¶
func (c SummaryReqLang) MarshalJSON() ([]byte, error)
func (*SummaryReqLang) UnmarshalJSON ¶
func (c *SummaryReqLang) UnmarshalJSON(b []byte) error
type SummaryReqLangEnum ¶
type SummaryReqLangEnum struct { ZH SummaryReqLang EN SummaryReqLang }
func GetSummaryReqLangEnum ¶
func GetSummaryReqLangEnum() SummaryReqLangEnum
type TextSimilarityAdvanceRequest ¶
type TextSimilarityAdvanceRequest struct { Text1 string `json:"text1"` Text2 string `json:"text2"` Lang *TextSimilarityAdvanceRequestLang `json:"lang,omitempty"` }
文本相似度请求体
func (TextSimilarityAdvanceRequest) String ¶
func (o TextSimilarityAdvanceRequest) String() string
type TextSimilarityAdvanceRequestLang ¶
type TextSimilarityAdvanceRequestLang struct {
// contains filtered or unexported fields
}
func (TextSimilarityAdvanceRequestLang) MarshalJSON ¶
func (c TextSimilarityAdvanceRequestLang) MarshalJSON() ([]byte, error)
func (*TextSimilarityAdvanceRequestLang) UnmarshalJSON ¶
func (c *TextSimilarityAdvanceRequestLang) UnmarshalJSON(b []byte) error
type TextSimilarityAdvanceRequestLangEnum ¶
type TextSimilarityAdvanceRequestLangEnum struct {
ZH TextSimilarityAdvanceRequestLang
}
func GetTextSimilarityAdvanceRequestLangEnum ¶
func GetTextSimilarityAdvanceRequestLangEnum() TextSimilarityAdvanceRequestLangEnum
type TextSimilarityRequest ¶
type TextSimilarityRequest struct { Text1 string `json:"text1"` Text2 string `json:"text2"` Lang *TextSimilarityRequestLang `json:"lang,omitempty"` }
文本相似度请求体
func (TextSimilarityRequest) String ¶
func (o TextSimilarityRequest) String() string
type TextSimilarityRequestLang ¶
type TextSimilarityRequestLang struct {
// contains filtered or unexported fields
}
func (TextSimilarityRequestLang) MarshalJSON ¶
func (c TextSimilarityRequestLang) MarshalJSON() ([]byte, error)
func (*TextSimilarityRequestLang) UnmarshalJSON ¶
func (c *TextSimilarityRequestLang) UnmarshalJSON(b []byte) error
type TextSimilarityRequestLangEnum ¶
type TextSimilarityRequestLangEnum struct { ZH TextSimilarityRequestLang EN TextSimilarityRequestLang }
func GetTextSimilarityRequestLangEnum ¶
func GetTextSimilarityRequestLangEnum() TextSimilarityRequestLangEnum
type TextTranslationReq ¶
type TextTranslationReq struct { Text string `json:"text"` From TextTranslationReqFrom `json:"from"` To TextTranslationReqTo `json:"to"` Scene *TextTranslationReqScene `json:"scene,omitempty"` }
This is a auto create Body Object
func (TextTranslationReq) String ¶
func (o TextTranslationReq) String() string
type TextTranslationReqFrom ¶
type TextTranslationReqFrom struct {
// contains filtered or unexported fields
}
func (TextTranslationReqFrom) MarshalJSON ¶
func (c TextTranslationReqFrom) MarshalJSON() ([]byte, error)
func (*TextTranslationReqFrom) UnmarshalJSON ¶
func (c *TextTranslationReqFrom) UnmarshalJSON(b []byte) error
type TextTranslationReqFromEnum ¶
type TextTranslationReqFromEnum struct { ZH TextTranslationReqFrom EN TextTranslationReqFrom JA TextTranslationReqFrom RU TextTranslationReqFrom KO TextTranslationReqFrom FR TextTranslationReqFrom ES TextTranslationReqFrom DE TextTranslationReqFrom AUTO TextTranslationReqFrom }
func GetTextTranslationReqFromEnum ¶
func GetTextTranslationReqFromEnum() TextTranslationReqFromEnum
type TextTranslationReqScene ¶
type TextTranslationReqScene struct {
// contains filtered or unexported fields
}
func (TextTranslationReqScene) MarshalJSON ¶
func (c TextTranslationReqScene) MarshalJSON() ([]byte, error)
func (*TextTranslationReqScene) UnmarshalJSON ¶
func (c *TextTranslationReqScene) UnmarshalJSON(b []byte) error
type TextTranslationReqSceneEnum ¶
type TextTranslationReqSceneEnum struct {
COMMON TextTranslationReqScene
}
func GetTextTranslationReqSceneEnum ¶
func GetTextTranslationReqSceneEnum() TextTranslationReqSceneEnum
type TextTranslationReqTo ¶
type TextTranslationReqTo struct {
// contains filtered or unexported fields
}
func (TextTranslationReqTo) MarshalJSON ¶
func (c TextTranslationReqTo) MarshalJSON() ([]byte, error)
func (*TextTranslationReqTo) UnmarshalJSON ¶
func (c *TextTranslationReqTo) UnmarshalJSON(b []byte) error
type TextTranslationReqToEnum ¶
type TextTranslationReqToEnum struct { ZH TextTranslationReqTo EN TextTranslationReqTo JA TextTranslationReqTo RU TextTranslationReqTo KO TextTranslationReqTo FR TextTranslationReqTo ES TextTranslationReqTo DE TextTranslationReqTo }
func GetTextTranslationReqToEnum ¶
func GetTextTranslationReqToEnum() TextTranslationReqToEnum
Source Files ¶
- model_aspect_advance_opinion.go
- model_aspect_opinion.go
- model_aspect_sentiment_advance_request.go
- model_aspect_sentiment_request.go
- model_classification_req.go
- model_classification_result.go
- model_create_poem.go
- model_dependency_parser_request.go
- model_dependency_parser_word.go
- model_document_classification_req.go
- model_domain_named_entity.go
- model_domain_sentiment_req.go
- model_entity_sentiment_req.go
- model_event_extraction_response_item.go
- model_event_extraction_response_item_argument.go
- model_file_translation_req.go
- model_hw_cloud_sentiment_req.go
- model_hw_cloud_sentiment_resp.go
- model_intent_req.go
- model_intent_result.go
- model_keyword_extract_req.go
- model_language_detection_req.go
- model_linked_entity.go
- model_named_entity.go
- model_ner_request.go
- model_post_domain_ner_request.go
- model_post_entity_linking_request.go
- model_post_event_extraction_req.go
- model_post_multi_gained_segment_response_item.go
- model_post_multi_gained_segment_response_item_copy.go
- model_post_multi_grained_segment_req.go
- model_post_sentence_embedding_req.go
- model_run_aspect_sentiment_advance_request.go
- model_run_aspect_sentiment_advance_response.go
- model_run_aspect_sentiment_request.go
- model_run_aspect_sentiment_response.go
- model_run_classification_request.go
- model_run_classification_response.go
- model_run_dependency_parser_request.go
- model_run_dependency_parser_response.go
- model_run_doc_classification_request.go
- model_run_doc_classification_response.go
- model_run_domain_sentiment_request.go
- model_run_domain_sentiment_response.go
- model_run_entity_linking_request.go
- model_run_entity_linking_response.go
- model_run_entity_sentiment_request.go
- model_run_entity_sentiment_response.go
- model_run_event_extraction_request.go
- model_run_event_extraction_response.go
- model_run_file_translation_request.go
- model_run_file_translation_response.go
- model_run_get_file_translation_result_request.go
- model_run_get_file_translation_result_response.go
- model_run_keyword_extract_request.go
- model_run_keyword_extract_response.go
- model_run_language_detection_request.go
- model_run_language_detection_response.go
- model_run_multi_grained_segment_request.go
- model_run_multi_grained_segment_response.go
- model_run_ner_domain_request.go
- model_run_ner_domain_response.go
- model_run_ner_request.go
- model_run_ner_response.go
- model_run_poem_request.go
- model_run_poem_response.go
- model_run_segment_request.go
- model_run_segment_response.go
- model_run_semantic_parser_request.go
- model_run_semantic_parser_response.go
- model_run_sentence_embedding_request.go
- model_run_sentence_embedding_response.go
- model_run_sentiment_request.go
- model_run_sentiment_response.go
- model_run_summary_domain_request.go
- model_run_summary_domain_response.go
- model_run_summary_request.go
- model_run_summary_response.go
- model_run_text_similarity_advance_request.go
- model_run_text_similarity_advance_response.go
- model_run_text_similarity_request.go
- model_run_text_similarity_response.go
- model_run_text_translation_request.go
- model_run_text_translation_response.go
- model_segment_request.go
- model_slot.go
- model_summary_domain_req.go
- model_summary_req.go
- model_text_similarity_advance_request.go
- model_text_similarity_request.go
- model_text_translation_req.go
- model_word.go