Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michael-spengler/nlp
🦕 Module for Natural Language Processing (NLP)
https://github.com/michael-spengler/nlp
communication natural-language-generation natural-language-processing natural-language-understanding
Last synced: 26 days ago
JSON representation
🦕 Module for Natural Language Processing (NLP)
- Host: GitHub
- URL: https://github.com/michael-spengler/nlp
- Owner: michael-spengler
- License: mit
- Created: 2020-07-23T18:18:46.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-04T09:43:57.000Z (about 4 years ago)
- Last Synced: 2024-09-16T16:49:55.202Z (about 2 months ago)
- Topics: communication, natural-language-generation, natural-language-processing, natural-language-understanding
- Language: TypeScript
- Homepage:
- Size: 33.2 KB
- Stars: 11
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Natural Language Processing (NLP)
## Usage Example for Your Code
```
import { NLP } from 'https://deno.land/x/[email protected]/nlp.ts'
import {exampleTrainingData} from 'https://deno.land/x/[email protected]/training-data.ts'const languages = ['en']
const trainingResult = await NLP.train(exampleTrainingData.documents, exampleTrainingData.answers, languages)
console.log(`trainingResult: \n${JSON.stringify(trainingResult)}`)const response = await NLP.getResponse('Hi', languages[0], trainingResult.clientId)
console.log(`response: \n${JSON.stringify(response)}`)
```## Call Usage Example via Command Line
```
deno run --allow-net --reload https://deno.land/x/[email protected]/usage-example.ts
```
## Execute the tests
```
deno test --allow-net --reload https://deno.land/x/nlp/test.ts
```
## Background Info
This module leverages https://github.com/fancy-flashcard/fancy-nlp until a pure Deno based solution is available.
The following comment might be interesting if you want to look into some background info: https://github.com/axa-group/nlp.js/issues/510#issuecomment-664246574Feel free to contribute via pull requests.
## Link to Deno
This module can be found here: [https://deno.land/x/nlp](https://deno.land/x/nlp).## Support my Open Source Contributions
If you like my work please consider downloading the brave browser via my promotion link: [https://brave.com/fan464](https://brave.com/fan464).
![![](https://brave.com/)](https://brave.com/wp-content/uploads/2019/01/logotype-full-color.svg)