Coder Social home page Coder Social logo

alexandrabaturina / evaluating-news-article-with-nlp Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 5.63 MB

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

JavaScript 65.68% HTML 11.59% SCSS 22.73%
webpack development-mode production-mode aylien-api node-js express-middleware jest service-workers

evaluating-news-article-with-nlp's Introduction

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

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.