warp-contracts-plugin-nlp
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

Warp Contracts Nlp plugin

This plugin attaches the NlpManager from the nlp.js library to the SmartWeave global object.
It can be then used inside the contract like this:

const manager = new SmartWeave.extensions
  .NlpManager({languages: ['en'], forceNER: true, nlu: { log: true }});

Installation

yarn add warp-contracts-plugin-nlp

import {NlpExtension} from "warp-contracts-nlp-plugin";
import {WarpFactory} from "warp-contracts";

const warp = WarpFactory.forMainnet()
  .use(new NlpExtension())

Requires warp-contract SDK ver. min. 1.2.18.

Readme

Keywords

none

Package Sidebar

Install

npm i warp-contracts-plugin-nlp

Weekly Downloads

6

Version

1.0.8

License

MIT

Unpacked Size

3.35 kB

Total Files

10

Last publish

Collaborators

  • redstone-finance