Documentation
¶
Index ¶
- type ProcessResult
- type SimResult
- type TaobaoNlpPreprocessAPIResponse
- type TaobaoNlpPreprocessRequest
- func (r TaobaoNlpPreprocessRequest) GetApiMethodName() string
- func (r TaobaoNlpPreprocessRequest) GetApiParams() url.Values
- func (r TaobaoNlpPreprocessRequest) GetFuncType() int64
- func (r TaobaoNlpPreprocessRequest) GetKeyword() string
- func (r TaobaoNlpPreprocessRequest) GetText() *Text
- func (r *TaobaoNlpPreprocessRequest) SetFuncType(funcType int64) error
- func (r *TaobaoNlpPreprocessRequest) SetKeyword(keyword string) error
- func (r *TaobaoNlpPreprocessRequest) SetText(text *Text) error
- type TaobaoNlpPreprocessResponse
- type TaobaoNlpSimilarityAPIResponse
- type TaobaoNlpSimilarityRequest
- type TaobaoNlpSimilarityResponse
- type TaobaoNlpWordAPIResponse
- type TaobaoNlpWordRequest
- func (r TaobaoNlpWordRequest) GetApiMethodName() string
- func (r TaobaoNlpWordRequest) GetApiParams() url.Values
- func (r TaobaoNlpWordRequest) GetText() *Text
- func (r TaobaoNlpWordRequest) GetWType() int64
- func (r *TaobaoNlpWordRequest) SetText(text *Text) error
- func (r *TaobaoNlpWordRequest) SetWType(wType int64) error
- type TaobaoNlpWordResponse
- type Text
- type Texts
- type WordResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcessResult ¶
type ProcessResult struct { TopResult string `json:"top_result,omitempty" xml:"top_result,omitempty"` TopStatus bool `json:"top_status,omitempty" xml:"top_status,omitempty"` }
ProcessResult
type SimResult ¶
type SimResult struct { TopResult string `json:"top_result,omitempty" xml:"top_result,omitempty"` TopStatus bool `json:"top_status,omitempty" xml:"top_status,omitempty"` }
SimResult
type TaobaoNlpPreprocessAPIResponse ¶
type TaobaoNlpPreprocessAPIResponse struct { model.CommonResponse TaobaoNlpPreprocessResponse }
文本语言预处理 APIResponse taobao.nlp.preprocess
实现文本语言处理中的预处理功能,如实现文字繁简转换、文字转拼音、文字拆分、谐音同音字替换和形似字替换。
type TaobaoNlpPreprocessRequest ¶
文本语言预处理 APIRequest taobao.nlp.preprocess
实现文本语言处理中的预处理功能,如实现文字繁简转换、文字转拼音、文字拆分、谐音同音字替换和形似字替换。
func NewTaobaoNlpPreprocessRequest ¶
func NewTaobaoNlpPreprocessRequest() *TaobaoNlpPreprocessRequest
func (TaobaoNlpPreprocessRequest) GetApiMethodName ¶
func (r TaobaoNlpPreprocessRequest) GetApiMethodName() string
func (TaobaoNlpPreprocessRequest) GetApiParams ¶
func (r TaobaoNlpPreprocessRequest) GetApiParams() url.Values
func (TaobaoNlpPreprocessRequest) GetFuncType ¶
func (r TaobaoNlpPreprocessRequest) GetFuncType() int64
func (TaobaoNlpPreprocessRequest) GetKeyword ¶
func (r TaobaoNlpPreprocessRequest) GetKeyword() string
func (TaobaoNlpPreprocessRequest) GetText ¶
func (r TaobaoNlpPreprocessRequest) GetText() *Text
func (*TaobaoNlpPreprocessRequest) SetFuncType ¶
func (r *TaobaoNlpPreprocessRequest) SetFuncType(funcType int64) error
func (*TaobaoNlpPreprocessRequest) SetKeyword ¶
func (r *TaobaoNlpPreprocessRequest) SetKeyword(keyword string) error
func (*TaobaoNlpPreprocessRequest) SetText ¶
func (r *TaobaoNlpPreprocessRequest) SetText(text *Text) error
type TaobaoNlpPreprocessResponse ¶
type TaobaoNlpPreprocessResponse struct { XMLName xml.Name `xml:"nlp_preprocess_response"` RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 平台颁发的每次请求访问的唯一标识 Processresult *ProcessResult `json:"processresult,omitempty" xml:"processresult,omitempty"` }
type TaobaoNlpSimilarityAPIResponse ¶
type TaobaoNlpSimilarityAPIResponse struct { model.CommonResponse TaobaoNlpSimilarityResponse }
文本语言相似度 APIResponse taobao.nlp.similarity
文本语言相似度计算,提供余弦距离、编辑距离和simHash三种相似度计算。返回文本相似度区间为0-1之间,0为完全不相似,1为完全相似。
type TaobaoNlpSimilarityRequest ¶
文本语言相似度 APIRequest taobao.nlp.similarity
文本语言相似度计算,提供余弦距离、编辑距离和simHash三种相似度计算。返回文本相似度区间为0-1之间,0为完全不相似,1为完全相似。
func NewTaobaoNlpSimilarityRequest ¶
func NewTaobaoNlpSimilarityRequest() *TaobaoNlpSimilarityRequest
func (TaobaoNlpSimilarityRequest) GetApiMethodName ¶
func (r TaobaoNlpSimilarityRequest) GetApiMethodName() string
func (TaobaoNlpSimilarityRequest) GetApiParams ¶
func (r TaobaoNlpSimilarityRequest) GetApiParams() url.Values
func (TaobaoNlpSimilarityRequest) GetTexts ¶
func (r TaobaoNlpSimilarityRequest) GetTexts() *Texts
func (*TaobaoNlpSimilarityRequest) SetTexts ¶
func (r *TaobaoNlpSimilarityRequest) SetTexts(texts *Texts) error
type TaobaoNlpWordAPIResponse ¶
type TaobaoNlpWordAPIResponse struct { model.CommonResponse TaobaoNlpWordResponse }
文本语言词法分析 APIResponse taobao.nlp.word
提供文本语言处理中的词法分析功能,开放中文分词和词权重计算功能。
type TaobaoNlpWordRequest ¶
文本语言词法分析 APIRequest taobao.nlp.word
提供文本语言处理中的词法分析功能,开放中文分词和词权重计算功能。
func NewTaobaoNlpWordRequest ¶
func NewTaobaoNlpWordRequest() *TaobaoNlpWordRequest
func (TaobaoNlpWordRequest) GetApiMethodName ¶
func (r TaobaoNlpWordRequest) GetApiMethodName() string
func (TaobaoNlpWordRequest) GetApiParams ¶
func (r TaobaoNlpWordRequest) GetApiParams() url.Values
func (TaobaoNlpWordRequest) GetText ¶
func (r TaobaoNlpWordRequest) GetText() *Text
func (TaobaoNlpWordRequest) GetWType ¶
func (r TaobaoNlpWordRequest) GetWType() int64
func (*TaobaoNlpWordRequest) SetText ¶
func (r *TaobaoNlpWordRequest) SetText(text *Text) error
func (*TaobaoNlpWordRequest) SetWType ¶
func (r *TaobaoNlpWordRequest) SetWType(wType int64) error
type TaobaoNlpWordResponse ¶
type TaobaoNlpWordResponse struct { XMLName xml.Name `xml:"nlp_word_response"` RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 平台颁发的每次请求访问的唯一标识 Wordresult *WordResult `json:"wordresult,omitempty" xml:"wordresult,omitempty"` }
type Text ¶
type Text struct { Id string `json:"id,omitempty" xml:"id,omitempty"` Content string `json:"content,omitempty" xml:"content,omitempty"` Type int64 `json:"type,omitempty" xml:"type,omitempty"` }
Text
type Texts ¶
type Texts struct { Id string `json:"id,omitempty" xml:"id,omitempty"` ContentSrc string `json:"content_src,omitempty" xml:"content_src,omitempty"` ContentDst string `json:"content_dst,omitempty" xml:"content_dst,omitempty"` Type int64 `json:"type,omitempty" xml:"type,omitempty"` }
Texts
type WordResult ¶
type WordResult struct { TopResult string `json:"top_result,omitempty" xml:"top_result,omitempty"` TopStatus bool `json:"top_status,omitempty" xml:"top_status,omitempty"` }
WordResult
Click to show internal directories.
Click to hide internal directories.