nlp

package
v1.3.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package nlp 包含文本算法API相关方法

https://open.taobao.com/API.htm?docType=2&docId=26130

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TaobaoNlpPreprocess

func TaobaoNlpPreprocess(clt *core.SDKClient, req *nlp.TaobaoNlpPreprocessAPIRequest, resp *nlp.TaobaoNlpPreprocessAPIResponse, session string) error

TaobaoNlpPreprocess 文本语言预处理 taobao.nlp.preprocess

实现文本语言处理中的预处理功能,如实现文字繁简转换、文字转拼音、文字拆分、谐音同音字替换和形似字替换。

func TaobaoNlpSimilarity

func TaobaoNlpSimilarity(clt *core.SDKClient, req *nlp.TaobaoNlpSimilarityAPIRequest, resp *nlp.TaobaoNlpSimilarityAPIResponse, session string) error

TaobaoNlpSimilarity 文本语言相似度 taobao.nlp.similarity

文本语言相似度计算,提供余弦距离、编辑距离和simHash三种相似度计算。返回文本相似度区间为0-1之间,0为完全不相似,1为完全相似。

func TaobaoNlpWord

func TaobaoNlpWord(clt *core.SDKClient, req *nlp.TaobaoNlpWordAPIRequest, resp *nlp.TaobaoNlpWordAPIResponse, session string) error

TaobaoNlpWord 文本语言词法分析 taobao.nlp.word

提供文本语言处理中的词法分析功能,开放中文分词和词权重计算功能。

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL