R Interface to the 'LTP'-Cloud Service

R interface to the 'LTP'-Cloud service for Natural Language Processing in Chinese ( http://www.ltp-cloud.com/).


An r package for ltp-cloud service. To get a valid API_Key please register on ltp-cloud and visit Dashboard.

Another package of mine for NLP online service interface is pullword.

I borrowed some pieces of codes from tmcn to do encoding conversion.

It is on CRAN now. Install the stable version by

install.packages('rLTP')

For up-to-date version please run

require(devtools)
install_github('hetong007/rLTP')

We here publicly provide a token for trying the following example:

require(rLTP)
options(ltp_api_key='l2T9N724koSqEcDJvQHtRGVV2erajgPOgB0FAcLj')
ltp('我告诉你们,我是身经百战的,见得多啦,西方的哪一个国家我没有去过,你们也知道美国的华莱士,比你们不知高到哪里去,我跟他谈笑风生,只是媒体也要提高自己知识水平,识得唔识得呀!你们有一个好,全世界甚么地方,你们跑得最快,但是问来问去的问题呀,too simple,sometimes naive,识得唔识得?')
ltp('根据碳碳键键能能否否定定律一或定律二?')

LTP-Cloud now Also provides official Sample R code.

News

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("rLTP")

0.1.4 by Tong He, 3 years ago


https://github.com/hetong007/rLTP


Report a bug at https://github.com/hetong007/rLTP/issues


Browse source code at https://github.com/cran/rLTP


Authors: Tong He [aut, cre] , Oliver Keyes [ctb]


Documentation:   PDF Manual  


Task views: Web Technologies and Services


LGPL license


Depends on RCurl


See at CRAN