Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aliyun_nlp_ruby

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aliyun_nlp_ruby

  • 0.0.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

AliyunNlpRuby

阿里云的分词服务SDK

安装

gem 'aliyun_nlp_ruby'

配置

添加文件 aliyun_nlp_ruby.rb 到 config/initializers.

AliyunNlpRuby.configure do |config|
  config.access_key_secret = ENV['ALIYUN_NLP_ACCESS_KEY_SECRET']
  config.access_key_id = ENV['ALIYUN_NLP_ACCESS_KEY_ID']
end

使用

中文分词

文档地址: https://help.aliyun.com/document_detail/181284.html

result = AliyunNlpRuby.get_ws_ch_general('对阿里云的分词进行调用')
put result

词性标注

文档地址: https://help.aliyun.com/document_detail/177225.html

result = AliyunNlpRuby.get_pos_ch_general('对阿里云的词性标注进行调用')
put result

通用方法

#进行分词调用
AliyunNlpRuby.query 'GetWsChGeneral', { Text: '对阿里云的分词进行调用', OutType: 1 }

FAQs

Package last updated on 10 Mar 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc