You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

github.com/wArrest/aliyun-nlp-sdk

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/wArrest/aliyun-nlp-sdk

v0.0.0-20201026040331-7849540a9966
Source
Go
Version published
Created
Source

aliyun-nlp-sdk

sdk for aliyun nlp service:1.0

阿里云官方没有提供nlp:1.0版本的golang SDK,自己简单封装了一个

Feature

  • 多语言分词 WordSegment
  • 词性标注 WordPos
  • 命名实体 Entity
  • 情感分析
  • 中心词提取
  • 智能文本分类
  • 文本信息抽取
  • 商品评价解析

Install

go get -u github.com/wArrest/aliyun-nlp-sdk

Usage

client := NewNlpClient(AccessKeyId, AccessKeySerect, RegionId)
resp, err := client.ExecApi(
	        "wordsegment",
		[]byte(`{"lang":"ZH","text":"Iphone专用数据线"}`),
		"general",
		)
//handle resp ....

FAQs

Package last updated on 26 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts