Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexandrabaturina/evaluating-news-article-with-nlp
Web tool to run Natural Language Processing on news article or blog posts
https://github.com/alexandrabaturina/evaluating-news-article-with-nlp
aylien-api development-mode express-middleware jest node-js production-mode service-workers webpack
Last synced: 8 days ago
JSON representation
Web tool to run Natural Language Processing on news article or blog posts
- Host: GitHub
- URL: https://github.com/alexandrabaturina/evaluating-news-article-with-nlp
- Owner: alexandrabaturina
- Created: 2020-05-19T22:17:44.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-18T03:38:09.000Z (almost 3 years ago)
- Last Synced: 2024-11-05T11:27:48.362Z (about 2 months ago)
- Topics: aylien-api, development-mode, express-middleware, jest, node-js, production-mode, service-workers, webpack
- Language: JavaScript
- Size: 5.49 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FEND Project #4: Evaluating News Articles With NLP
## Overview
**Evaluating News Articles with NLP** is the fourth project of Udacity [Front End Web Developer](https://www.udacity.com/course/front-end-web-developer-nanodegree--nd0011) nanodegree program. It requires to build a web tool to run [Natural Language Processing](https://en.wikipedia.org/wiki/Natural_language_processing) on news articles or blog posts.The goal of this project is to practice with:
* Setting up [Webpack](https://webpack.js.org/guides/getting-started/)
* [Sass styles](https://sass-lang.com/guide)
* Webpack loaders and plugins
* Creating layouts and page design
* Service workers
* Using APIs and creating requests to external URLs
* Using [Jest](https://jestjs.io/docs/en/getting-started)
## Features
* Based on URL entered by user, the app uses [AYLIEN Text Analysis API](https://docs.aylien.com/) to analyze article by four parameters:
* Polarity
* Subjectivity
* Polarity confidence
* Subjectivity confidence
* The regex-based URL validation is implemented.![image](https://user-images.githubusercontent.com/53233637/97345745-af6f8c80-1847-11eb-8b95-71c64b22a204.png)
## 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](https://nodejs.org/en/).
2. Install the dependencies using NPM.
```
npm install
```
3. Get AYLIEN Text Analysis API key [here](https://developer.aylien.com/signup).
4. Clone this repo.
5. ``cd`` into project directory.
6. Create ```.env``` file in the root of the project.
7. Fill the ```.env``` file with your API keys.
```sh
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
```
2. Run run the server.
```
npm start
```
3. 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
```
2. Start the server.
```
npm run start
```
3. Access ```http://127.0.0.1:8080/``` in your browser.## Authors
Alexandra Baturina