
Build a NodeJS json-based API server for sentiment analysis. Create a React JS client that interacts with the server, sends sentences, and displays results.
initialize with package.json, install babel-register and babel-preset-env to transpile ES6/ES7 to ES5, configure .babelrc with env, and require babel-register in index.js to run the server.
Install happy package, add babel polyfill, create a hapi server in Node.js with a server.js file and routes for home page and centralized path, then start on localhost:5000.
Explains synchronous vs asynchronous code using a setTimeout example, introduces promise as an object representing an eventual completion, and shows how await, async, and then handle resolution or rejection.
Learn to separate server routes from the model using a routes module, register routes, and test a post-based endpoint that accepts a json sentence and returns sentiment analysis.
Install nodemon to enable auto-reload during development, replacing npm start with nodemon to watch for code changes.
Learn to build a sentiment analysis API using nltk in python, integrate python with nodejs, and configure the vader lexicon for sentiment analysis.
Create a Python Vader model to analyze sentence sentiment via command line, computing negative, neutral, and positive scores and selecting the top sentiment.
Integrate a Python sentiment analyzer into a Node.js app using Python Shell and promisify. Create a route that runs the script and returns positive, negative, or neutral sentiment.
Implement a React client that posts sentences to the sentiment analysis API and displays the result (positive, negative, neutral) using a text area, a submit button, and reusable components.
Build a React class-based query form component with a text area for sentiment analysis and a submit button, while exploring Create React App structure, jsx className, state, and render.
Style the form by adding a query form css, center a 50% wrapper, use white labels, and set the text area and button to full width with hover effects.
Learn to attach an onChange handler to a textarea, manage component state with setState to reflect input, and enable or disable the submit button based on trimmed text presence.
With this course, you will learn to build a NodeJS (HapiJS) JSON-based Restful API backend for sentiment analysis and a ReactJS client that interacts with the API. HapiJS, a rich and configuration-centric server framework for NodeJS allows us to build powerful and configurable applications. Moreover, sentiment analysis allows automated reasoning about sentences to determine whether they are positive, negative or neutral. A popular use case is to find out how people feel about a product or service. This is course introduces you to a powerful Python package, NLTK (Natural Language ToolKit), that allows you to do more than sentiment analysis. Aside from learning and building together a HapiJS API and ReactJS App, we learn how to integrate the NLTK Python package (and for that matter any other Python package) into a NodeJS application.
We will start by first building a HapiJS server that can receive texts and send simple responses. We will interact with our server via Chrome's Postman plugin. Then, we will integrate VADER NLTK sentiment analysis into the server, that will allow the server to determine the sentiments of sentences in English. Afterwards, we will build a ReactJS client that allows us to enter and send sentences to the server and display the sentiment of a our sentence.
So, in summary, this learning by doing doing course is prepared for you to: