Code Monkey home page Code Monkey logo

evaluate-news-article's Introduction

Evaluate a News Article with Natural Language Processing

The goal of this project is to provide a tool that analyzes the sentiment and other language-based attributes of a news article using the Meaning Cloud API's Natural Language Processing capabilities. It bundles the required JavaScript files using Webpack and utilizes an Express server to serve the application.

Installation

  1. Clone the repository: git clone https://github.com/yousefkullab/evaluate-news-article.git
  2. Navigate to the project directory: cd evaluate-news-article
  3. Install the project dependencies: npm install

Usage

  • build the distribution files for development and production npm run bulid-dev or npm run build-prod
  • Start the development server: npm run start
  • Open your web browser and navigate to localhost:8081 to access the application.
  • Enter the URL of the news article you want to evaluate in the provided form.
  • Submit the form to see the analysis results, including sentiment and other language-based attributes of the article.

Dependencies

This project uses the following main dependencies:

  • Express: Web server for handling requests.
  • Meaning Cloud API: Provides Natural Language Processing analysis.
  • Webpack: Bundles JavaScript and other assets for deployment.
  • Jest: Testing framework for unit testing.

Project Structure

The project is structured as follows:

  • src/client/index.js: Entry point for the client-side JavaScript.
  • src/client/js/urlChecker.js: Contains the logic for checking the validity of the entered URL.
  • src/client/js/formHandler.js: Manages the form submission and API request.
  • src/client/views: Contains the HTML templates for the application.
  • src/client/styles: Holds the CSS styles for the application.
  • src/server/index.js: Entry point for the Express server.

API Key

To use the Meaning Cloud API, you need to sign up for an API key.
Create a .env file and add this line API_KEY = "Your_Api_Key_From_Meaning_Cloud_Api"

License

© Yousef Kullab

evaluate-news-article's People

Contributors

yousefkullab avatar

Watchers

Kostas Georgiou avatar  avatar

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.