Skip to content

ehernandezvilla/evaluating-news-NLP

Repository files navigation

NLP Project

Table of Contents

Overview

This project is a Natural Language Processing (NLP) application that uses the MeaningCloud API to analyze text. The application is built using Node.js, Express, and Webpack.

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/nlp-project.git
  2. Navigate to the project directory:

    cd nlp-project
  3. Install the dependencies:

    npm install
  4. Create a .env file in the root directory and add your MeaningCloud API key:

    API_KEY=your_api_key_here

Usage

  1. To start the development server, run:

    npm run build-dev
  2. To build the production version, run:

    npm run build-prod
  3. To start the Express server, run:

    npm start

Scripts

  • npm start: Starts the Express server on port 8081.
  • npm run build-prod: Builds the production version.
  • npm run build-dev: Starts the development server.
  • npm test: Runs Jest tests.

Dependencies

  • Node.js
  • Express
  • Webpack
  • Babel
  • Jest
  • Supertest
  • Workbox (for service workers)
  • And more...

Testing

  1. Make sure Jest and Supertest are installed:

    npm install --save-dev jest supertest
  2. Run the tests:

    npm test

This will run the Jest test suites and provide a summary of the tests passed or failed.


For more information, please refer to the comments in the code or contact the developer.