udacity-evaluate-news-nlp
所属分类:自然语言处理
开发工具:JavaScript
文件大小:304KB
下载次数:0
上传日期:2020-12-30 21:34:42
上 传 者:
sh-1993
说明: 城市评估新闻nlp,,
(udacity-evaluate-news-nlp,,)
文件列表:
.babelrc (41, 2020-12-31)
Procfile (29, 2020-12-31)
REQUIREMENTS.md (692, 2020-12-31)
__test__ (0, 2020-12-31)
__test__\testFormHandler.spec.js (218, 2020-12-31)
__test__\testPuncCheck.spec.js (477, 2020-12-31)
package-lock.json (593695, 2020-12-31)
package.json (1239, 2020-12-31)
src (0, 2020-12-31)
src\client (0, 2020-12-31)
src\client\images (0, 2020-12-31)
src\client\images\memoji_mike_optimized.png (159446, 2020-12-31)
src\client\index.js (411, 2020-12-31)
src\client\js (0, 2020-12-31)
src\client\js\formHandler.js (1550, 2020-12-31)
src\client\js\puncChecker.js (136, 2020-12-31)
src\client\styles (0, 2020-12-31)
src\client\styles\base.scss (277, 2020-12-31)
src\client\styles\footer.scss (201, 2020-12-31)
src\client\styles\form.scss (472, 2020-12-31)
src\client\styles\header.scss (117, 2020-12-31)
src\client\styles\resets.scss (1152, 2020-12-31)
src\client\views (0, 2020-12-31)
src\client\views\index.html (1508, 2020-12-31)
src\server (0, 2020-12-31)
src\server\index.js (1409, 2020-12-31)
webpack.dev.js (1312, 2020-12-31)
webpack.prod.js (1347, 2020-12-31)
## Getting started
To begin using and developing this NLP app you must first clone this repo.
`cd` into your new folder and run:
- `npm install`
## Setting up the API
The Meaning Cloud API requires an API key in whicch you must register for to begin using this project.
### Step 1: Signup for an API key
You can find the API [here](https://www.meaningcloud.com/developer/sentiment-analysis). Once you create an account with MeaningCloud, you will be given a license key to start using the API. This API does not require an SDK, so you can skip ahead to step 4 in the instructions.
### Step 2: Environment Variables
Next we need to declare our API keys, as well as choose a port to run the app on. This project is using `dotenv`, which means it will be looking for a `.env` file at the root of the project that will look like:
```
PORT=8080
API_KEY="Your API key"
```
### Step 3: Running the app
We're ready to go! To start the server you may do the following:
```
# To run in development mode with webpack-dev-server
npm run build-dev
# To build production dist you may run
npm run build-prod
# To start the app you may run
npm run start
```
## Deployed
This app has been deployed to Heroku and can be found [here](https://mighty-dusk-28999.herokuapp.com).
近期下载者:
相关文件:
收藏者: