Skip to content

This is my submission for Project 4 for Udacity, where we are required to build a web tool that allows users to run a Natural Language Processing (NLP) on articles or blogs that are found on other websites. The goal is for us to understand the role of build tools and its techology.

Notifications You must be signed in to change notification settings

lly03/evaluate-news-nlp

Repository files navigation

Evaluate News NLP

Project Description

This project required me to implement an NLP API into a web application, while also applying webpack and other build tools onto it. The API that was used for this app is the Open Sentiment Analysis (Meaning Cloud) API.

Usage

To use this app, you'll need to get an API from Meaning Cloud. Make sure you have node installed into your desktop, as you'll be using the "npm" command. So the first step is after you downloaded this file, you'll need to create an .env file, which should be in the same directory as the package.json. Then save your API_KEY into that file.

screenshot of the .env file

API_KEY=**********

Then you'll need to run the following command line on your terminal, so it has all the required packages. It should create a node_modules folder, so make sure you have that.

npm install

screenshot of the node_modules folder

Afterwards in the terminal, run the command:

npm run build-prod

This command will create a dist folder that is in the same directory as your src folder, and the dist folder will have all your files in a webpack format. Another reason to run this command is because the server is pointed into that folder as well.

screenshot of the dist folder

To run the web application you can run the following command line in your terminal.

npm start

Then in your browser, go to localhost:8080 where your web app is at. Your web application should look like this and when you enter a url into the textbox it should retrieve you the analysis.

screenshot of the NLP web app

Starter Code

I used a starter code provided by Udacity - Link to the starter code

About

This is my submission for Project 4 for Udacity, where we are required to build a web tool that allows users to run a Natural Language Processing (NLP) on articles or blogs that are found on other websites. The goal is for us to understand the role of build tools and its techology.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published