# abb-model

> This refers to the various models of conversational AI.

Latest version **1.0.9** (published 2023-07-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install abb-model
pnpm add abb-model
yarn add abb-model
bun add abb-model
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2023-07-18 |
| First published | 2023-07-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=16.20.1 |
| Dependencies | 18 |
| Unpacked size | 28.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | femijoshuaalabi |
| Keywords | natural language processing, artificial Intelligence, natural language understanding, NLP, NLU, sentiment analysis, chatbot, bot, classifier, logistic regression, natural, entity extraction |

## Links

- npm: https://www.npmjs.com/package/abb-model
- Repository: https://github.com/femijoshuaalabi/abb-model
- Homepage: https://github.com/femijoshuaalabi/abb-model.git
- Issues: https://github.com/axa-group/nlp.js/issues
- npm.io page: https://npm.io/package/abb-model

## Dependencies (18)

- [natural](https://npm.io/package/natural.md) ^6.3.0
- [wordpos](https://npm.io/package/wordpos.md) ^2.1.0
- [abb-model](https://npm.io/package/abb-model.md) ^1.0.8
- [@nlpjs/nlg](https://npm.io/package/@nlpjs/nlg.md) ^4.26.1
- [@nlpjs/nlp](https://npm.io/package/@nlpjs/nlp.md) ^4.27.0
- [@nlpjs/nlu](https://npm.io/package/@nlpjs/nlu.md) ^4.27.0
- [@nlpjs/emoji](https://npm.io/package/@nlpjs/emoji.md) ^4.26.1
- [@nlpjs/neural](https://npm.io/package/@nlpjs/neural.md) ^4.25.0
- [@nlpjs/request](https://npm.io/package/@nlpjs/request.md) ^4.25.0
- [@nlpjs/xtables](https://npm.io/package/@nlpjs/xtables.md) ^4.25.0
- [@nlpjs/lang-all](https://npm.io/package/@nlpjs/lang-all.md) ^4.26.1
- [@nlpjs/language](https://npm.io/package/@nlpjs/language.md) ^4.25.0
- [@nlpjs/evaluator](https://npm.io/package/@nlpjs/evaluator.md) ^4.26.1
- [@nlpjs/sentiment](https://npm.io/package/@nlpjs/sentiment.md) ^4.26.1
- [@nlpjs/similarity](https://npm.io/package/@nlpjs/similarity.md) ^4.26.1
- [@nlpjs/core-loader](https://npm.io/package/@nlpjs/core-loader.md) ^4.26.1
- [@nlpjs/builtin-duckling](https://npm.io/package/@nlpjs/builtin-duckling.md) ^4.26.1
- [@nlpjs/builtin-microsoft](https://npm.io/package/@nlpjs/builtin-microsoft.md) ^4.26.1

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.0.9 (latest) — 2023-07-18
- 1.0.8 — 2023-07-06
- 1.0.7 — 2023-07-06
- 1.0.6 — 2023-07-06
- 1.0.5 — 2023-07-06
- 1.0.4 — 2023-07-06
- 1.0.3 — 2023-07-06
- 1.0.2 — 2023-07-06
- 1.0.1 — 2023-07-05

## README

# ABB

This refers to the various models of conversational AI

## Installation

To use ABB in your project:

```bash
    npm install abb-model
```

```bash
    yarn add abb-model
```

Create a Model in JSON file:

```javascript
[
    {
        tag: 'greeting',
        patterns: ['Hi there', 'How are you', 'Is anyone there?', 'Hey', 'Hello', 'Good day'],
        responses: ['Hello', 'Good to see you again', 'Hi there, how can I help?'],
        context: [''],
    },
];
```

Train your abb-model:

```javascript
import { train } from 'abb-model';

const getTrain = await train({
    type: 'json',
    model: './model.json',
});

console.log(getTrain);
```

This will show this result in console:

```bash
Successfully train and save the model
```

Create a Model in JS file:

```javascript
export default [
    {
        tag: 'greeting',
        patterns: ['Hi there', 'How are you', 'Is anyone there?', 'Hey', 'Hello', 'Good day'],
        responses: ['Hello', 'Good to see you again', 'Hi there, how can I help?'],
        context: [''],
    },
];
```

Train your abb-model:

```javascript
import { train } from 'abb-model';
import model from './model';

const getTrain = await train({
    type: 'array',
    model,
});

console.log(getTrain);
```

This will show this result in console:

```bash
Successfully train and save the model
```

use your abb-model :

```javascript
import { abb } from 'abb-model';

const response = await abb('Hello');
console.log(response);
```

This will show this result in console:

```bash
 {
  answers: [
    { answer: 'Hello' },
    { answer: 'Good to see you again' },
    { answer: 'Hi there, how can I help?' }
  ],
  answer: 'Hi there, how can I help?'
}
```

<b>LICENSE</b>
</br>

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

---
_Source: https://npm.io/package/abb-model · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
