GithubHelp home page GithubHelp logo

codeaudit / nlp.js-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from axa-group/nlp.js-app

0.0 1.0 0.0 12.13 MB

License: MIT License

HTML 1.36% CSS 1.29% JavaScript 97.31% Dockerfile 0.04%

nlp.js-app's Introduction

NLP Logo

NLP.js App

Deploy

Application to train your agents for bots, done using NLP.js.

34 languages supported: Arabic (ar), Armenian (hy), Bengali (bn), Basque (eu), Catala (ca), Chinese (zh), Czech (cs), Danish (da), Dutch (nl), English (en), Farsi (fa), Finnish (fi), French (fr), Galician (gl), German (de), Greek (el), Hindi (hi), Hungarian (hu), Indonesian (id), Irish (ga), Italian (it), Japanese (ja), Norwegian (no), Portuguese (pt), Romanian (ro), Russian (ru), Slovene (sl), Spanish (es), Swedish (sv), Tagalog (tl), Tamil (ta), Thai (th), Turkish (tr), Ukrainian (uk)

Demo NLP

TABLE OF CONTENTS

Installation

You have a one click installation for free in heroku, clicking the "deploy to heroku" button in this page. If you want to use it on-premise, follow this steps:

  • MongoDB is needed
  • NodeJS is needed
  • Clone this repo
  • Run npm install to download dependencies
  • Modify the .env at the root to point to your database (you have a .envexample you can use)
  • Modify the .env at the client folder to point to the url and port of your backend
  • Run npm start at the root folder
  • Run npm start at the client folder (This step is OPTIONAL. Run if you want to make change in the front-end )

If you want to generate a production version, run npm run build at the client folder and copy the build contents to the public folder.

Running in a different port

Example of application running in port 3010:

./.env

NODE_ENV=development
MONGO_URL=mongodb://localhost:27017/nlpjs
LOG_LEVEL=debug
PORT=3010

./client/.env

SETTINGS_URL=http://localhost:3010
API_URL=http://localhost:3010
PUBLIC_PATH_PREFIX=

Then, replace "public" folder content:

cd client
npm run build
cd ..
mv public public_old
mv client/build public
npm start

Example of use

You can create an agent:

Create agent

Then create at least one domain:

Create domain

Create some entities if you need them:

Create entity

Create some intents:

Create intent

Train and test:

Train

Slot filling

It's also possible to check required entities within an intent.

Example of basic slot filling:

Basic slot filling

Example of multiple slot filling used in the same intent:

Multiple slot filling

Docker Compose

A docker-compose receipt is available to allow a quick-start easily. Just execute:

Start:

docker-compose up

Start detached:

docker-compose up -d

Stop:

docker-compose down

It will start the Mongo database, NLP.js application and a Mongo Express to allow inspect the collections.

Little disclaimer

Consider the changes you may apply in the configuration as outlined in point Installation and take in mind the behaviour of Docker Compose as exposed in https://docs.docker.com/compose/compose-file/#env_file

Serverless Deployment

AWS Lambda

See docs at: https://github.com/axa-group/nlp.js-app/blob/master/docs/serverless-aws.md

Software Used

This project is based on the Articulate Project from Samtec, that you can find here: https://github.com/samtecspg/articulate

Contributing

You can read the guide of how to contribute at Contributing.

Code of Conduct

You can read the Code of Conduct at Code of Conduct.

Who is behind it

This project is developed by AXA Group Operations Spain S.A.

If you need to contact us, you can do it at the email [email protected]

License

Copyright (c) AXA Group Operations Spain S.A.

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.

nlp.js-app's People

Contributors

dependabot[bot] avatar eric-lara avatar ericaltran avatar ericzon avatar lezsakdomi avatar maximebeaudoin avatar vilherda avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.