Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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)

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-664246574

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