Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nlp-with-actions

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nlp-with-actions

This package combines Natural Language Processing with User Action Processing

  • 3.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Natural Language Processing With Actions

Simply process text

This package is e.g. used by homo-digitalis and by the telegram-interaction-builder

It leverages e.g. the nlp-trainer


Basic Usage Example

import { Processor, IAnswer, IAnswerExtended } from "nlp-with-actions"
import { NLPTrainer } from "nlp-trainer"

const processor: Processor = new Processor()
const nlpTrainer: NLPTrainer = new NLPTrainer()

// you can replace the trainingData with your own data
const trainingData: any = await nlpTrainer.getIntents("exampleMap")
await processor.learn(trainingData) 

const answer: IAnswer = await processor.process("hi")

console.log(answer)

Example Data

To explore example training data and its structure check the nlp-trainer package.

Advanced Usage Example

// see also above

// retrieving details including e.g. results of entity extraction
const detailedAnswer: IAnswerExtended = 
    await processor.processAndDeliverDetails("Hi. I'm 25.")

console.log(JSON.stringify(detailedAnswer))

Feedback

If you find any issues or want to share improvement proposals in general feel free to open an issue here.

Contribute

I am interested in save and useful enhancements. Feel free to create Pull Requests on my Repository.

Keywords

FAQs

Package last updated on 25 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc