Skip to content

Web tool to run Natural Language Processing on news article or blog posts

Notifications You must be signed in to change notification settings

alexandrabaturina/evaluating-news-article-with-nlp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FEND Project #4: Evaluating News Articles With NLP

Overview

Evaluating News Articles with NLP is the fourth project of Udacity Front End Web Developer nanodegree program. It requires to build a web tool to run Natural Language Processing on news articles or blog posts.

The goal of this project is to practice with:

  • Setting up Webpack
  • Sass styles
  • Webpack loaders and plugins
  • Creating layouts and page design
  • Service workers
  • Using APIs and creating requests to external URLs
  • Using Jest

Features

  • Based on URL entered by user, the app uses AYLIEN Text Analysis API to analyze article by four parameters:
    • Polarity
    • Subjectivity
    • Polarity confidence
    • Subjectivity confidence
  • The regex-based URL validation is implemented.

image

Dependencies

Cool tech stuff used in this project:

  • Node.js
  • Express framework
  • Node.js packages:
    • cors
    • body-parser

Getting Started

Prerequisites

  1. Download Node.js from here.
  2. Install the dependencies using NPM.
npm install
  1. Get AYLIEN Text Analysis API key here.
  2. Clone this repo.
  3. cd into project directory.
  4. Create .env file in the root of the project.
  5. Fill the .env file with your API keys.
API_ID=ENTER_YOUR_ID_HERE
API_KEY=ENTER_YOUR_KEY_HERE

Running Tests

To run tests, from project directory run the following command:

npm run test

Running in Development Mode

  1. From project directory, run the following command:
npm run build-dev
  1. Run run the server.
npm start
  1. Access http://127.0.0.1:8080/ in your browser.

Running in Production Mode

To run the app in production mode:

  1. Build the dist folder.
npm run build-prod
  1. Start the server.
npm run start
  1. Access http://127.0.0.1:8080/ in your browser.

Authors

Alexandra Baturina