Skip to content

Guoqifeng/ltp-cloud-api-tutorial

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LTP Cloud API 编程调用示例

通过例子学习使用LTP Cloud API!

获得一个apikey

在语言云网站上完成注册后,点击控制面板,就可以看到apikey。

apikey

HelloWord程序

通过这些例子,你可以了解如何使用GET方式分析请求LTP Cloud API; 如何填写LTP Cloud API的参数集; 在不同参数设置下,LTP Cloud响应的格式。

  • ./Java/Basics/SimpleAPI.java
  • ./Go/Basics/simple.go
  • ./Nodejs/Basics/simple.js
  • ./R/Basics/simple.R
  • ./Python/Basics/simple.py
  • ./Ruby/Basics/simple.rb

交互式例子

  • ./Java/Basics/CommandLineAPI.java
  • ./JavaScript/Basics/demo.html
  • ./JavaScript/JQuery/demo.html
  • ./PHP/Basics/simple.php
  • ./Python/Basics/interactive.py

构造中间结果进行后续分析

通过这些例子,你可以了解如何使用POST方式分析请求LTP Cloud API; 如何构造适应LTP的中间结果表示LTML。

  • ./Java/Customs/CustomSegmentation.java
  • ./Nodejs/Customs/custom-segment.js
  • ./Python/Customs/CustomSegmentation.py
  • ./Python/Customs/CustomPOSTags.py
  • ./Ruby/Customs/CustomSegmentation.rb

注册及更多使用方法

用户在语言云网站上注册成功后即可获得使用API的API_KEY。

有关更多API的使用方法,请参考:语言云新版API使用文档

其他链接

About

A various-language tutorial of LTP Cloud API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 23.0%
  • Python 22.0%
  • HTML 19.3%
  • C# 9.4%
  • PHP 9.1%
  • Ruby 9.1%
  • Other 8.1%