https://github.com/whitejaeger/nlp-metrics
https://github.com/whitejaeger/nlp-metrics
flask natural-language-processing python3
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/whitejaeger/nlp-metrics
- Owner: WhiteJaeger
- Archived: true
- Created: 2020-02-20T19:20:50.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-21T22:22:47.000Z (over 4 years ago)
- Last Synced: 2024-09-30T16:55:56.052Z (almost 2 years ago)
- Topics: flask, natural-language-processing, python3
- Language: Python
- Homepage: http://nlp-metrics.herokuapp.com/
- Size: 17.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NLP Metrics
## N-gram based and Syntactic
This repository contains a Flask web application which aims to help with measuring the performance of the machine &
human translation. This app could be accessed either remotely - it is deployed at http://nlp-metrics.herokuapp.com/ - or
locally - by following the steps below.
## Running the app locally
* Prerequisites:
* Python version >= 3.7.
* It is strongly advised to create a [virtual environment](https://docs.python.org/3/library/venv.html) for the app.
1. Install dependencies by running the following command:
```bash
pip install -r requirements.txt
```
2. Download the following corpora: `stopwords punkt averaged_perceptron_tagger wordnet`
with NLTK downloader:
```bash
python -m nltk.downloader stopwords punkt averaged_perceptron_tagger wordnet
```
3. Run the application:
1. In production mode: `python app.py`
2. In development mode:
1. Set env variables: `set or export FLASK_APP=app.py`
2. Run the app: `flask run`
4. Head to the `localhost:5000` in browser.