Skip to content

Web tool that allows users to run Natural Language Processing (NLP) on articles or blogs found on other websites.

Notifications You must be signed in to change notification settings

itstanany/evaluate-news-article

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Udacity Advanced front-end Nanodegree Project:

Evaluate a news article with Natural Language Processing

Video Demo

A video walk through is available here: https://youtu.be/fmIIIpOau_8 including installation and app overview.

video installation and walk-through

What We will be building

We will be building web tool that allows users to run Natural Language Processing (NLP) on articles or blogs found on other websites. Using Semantic Analysis API from Meaning Cloud , we can build a simple web interface to interact with their NLP system. This tool will give us back pertinent information about the article, like whether the content is subjective (opinion) or objective (fact-based).

Technologies and Languages Used:

  • Backend-Server:
    • ExpressJS(NodeJS)
    • Async/Await
  • UI (Front-end):
    • Vanilla Javascript
    • Sass
    • HTML
  • Tools:
    • Webpack
    • Git version Control System
    • Github
    • Github Pages, Live Here
  • Testing:
    • Jest

Interactions

The page built for this project is a simple one. It has a form with a single filed which receives an input. This input is checked for valid url. A helpful error message is displayed for invalid url. If the url is valid, then an api call is performed and the result displayed on the page.

Home page

API response - valid URL

Invalid URL message

Run project

Below shows how to run in development and production mode.

Download Dependencies

npm install or yarn

run in development mode

To start the webpack dev server at port 8080

$ npm run build-dev or yarn build-dev

Start back-end serve npm run start or yarn start

run in production mode

Generate the dist files and then start server at port 3000

$ npm run build-prod or yarn build-prod

$ npm run start or yarn start

Configs files

  • Webpack
    • Dev Configs: webpack.config.dev.js
      • Not optimized build
      • source map
    • Production webpack.config.prod.js
      • Optimized build
      • Auto generated HTML from template
  • Dependency
    • package.json

API

The project uses Semantic Text Analysis SDKs from Meaning Cloud, which provides a powerful and flexible AI-driven content analysis solutions.

Offline Functionality

The project have service workers set up in webpack to provide the offline functionality of our app. When the service worker is functioning correctly, you will see the below message when you inspect the browser.

Testing

Testing is done with Jest. To run test, use the command

npm run test or yarn test

About

Web tool that allows users to run Natural Language Processing (NLP) on articles or blogs found on other websites.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published