Package Exports
- ltp-cloud
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ltp-cloud) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ltp-cloud
目前采用回调模式,会在近期加入返回值模式。
安装
npm i ltp-cloud --save
使用
"use strict";
const nlp = require('ltp-cloud');
nlp.configure({
api_key : ""
});
nlp.cut("我爱你,我真的十分爱你!",(err,data) => {
console.log(data)
})