Git Product home page Git Product logo

tfapi's Introduction

Sentiment Analysis (Convonutional Neural Network model) using Tensorflow

Docker Setup

  1. Install Docker
  2. Run git clone [email protected]:ggodreau/tfapi.git
  3. Open docker terminal and navigate to /path/to/tf-sentiment-docker
  4. Run docker build . -t tfapi
  5. Run docker run -p 8080:8180 sentiment-api
  6. Run `curl -vvv 'http://localhost:8080/sentiment?senderName=greg&message=stunning%20adore%20products%20great'
* TCP_NODELAY set
* Connected to localhost (::1) port 8080 (#0)
> GET /sentiment?senderName=greg&message=stunning%20adore%20youproductsgreat HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.52.1
> Accept: */*
> 
< HTTP/1.1 200 OK
< Content-Type: application/json
< Transfer-Encoding: chunked
< Date: Fri, 05 Oct 2018 15:52:01 GMT
< Server: localhost
< 
* Curl_http_done: called premature == 0
* Connection #0 to host localhost left intact
{"Name": "greg", "Sentiment": "Positive", "Response": "Thank you for your valuable feedback! \n \nIt will help us to serve better in future.\n"}```

7. Kill your container with `docker stop $(docker ps -aq)`

tfapi's People

Contributors

ggodreau avatar

Watchers

James Cloos avatar  avatar

Forkers

brad7139

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.