Giter Site home page Giter Site logo

fastchat's Introduction

FastChat

The logic behind a ChatBot which analyzes user inputs and queries a database

Built using:

Usage and Paramters

  • By default the service is hosted on port 8080
  • Acceptes Get requests
  • text - Required: The user input message
  • limit - Optional: limits the number of input returned
http://${your ip}:8080/${input}?limit=${int value}

Example

http://localhost:8080/who works in toronto?limit=20

Result

  • Response is in JSON
  • Response - There are two parts to the response
    • resultList - An JSON Array which contains all the information from the query
    • plainText - A simplified string that combines all the information from resultList into a sentence

Installation

  • Java 8
  • Import as a Maven Project
  • Create an AWS account and and create an Access/Secret Key
  • Launch an MySQL RDS instance
  • Launch an EC2 Ubuntu 16.04 instance

Put the apporiate values in {resources/application.properites}

spring.datasource.url=
spring.datasource.username=
spring.datasource.password=
AWS_ACCESS_KEY=
AWS_SECRET_KEY=
...

Setting up this application as a TOMCAT server

  • build your applicaiton as a .war file
  • Follow this guide to setup your server as a Tomcat server
  • In the application manager, run your .war file

** NOTE ** You will need to configure your own SQL database and will need to change Dao/AWS_RDS_dao to suit your needs. My database is setup as such: alt text

Testing

You can write your own Junit testing in src/test/java

TODO

  • Swtich to elastic search and OpenNLP

fastchat's People

Contributors

lincoln23 avatar rrangith avatar dependabot[bot] avatar

Watchers

James Cloos 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.