3.4.0 • Published 5 years ago
nlp-with-actions v3.4.0
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.
3.4.0
5 years ago
3.3.0
5 years ago
3.2.3
5 years ago
3.2.2
5 years ago
3.2.1
5 years ago
3.2.0
5 years ago
3.0.4
5 years ago
3.0.3
5 years ago
3.0.2
5 years ago
3.0.1
5 years ago
3.0.0
5 years ago
2.2.3
5 years ago
2.2.2
5 years ago
2.2.1
5 years ago
2.2.0
5 years ago
2.1.0
5 years ago
2.0.2
5 years ago
2.0.1
5 years ago
2.0.0
5 years ago
1.0.10
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago