JSPM

ltp-cloud

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q19681F
  • License AGPL-3.0

语言云的中文分词服务

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)
    })