An open API service indexing awesome lists of open source software.

https://github.com/whitejaeger/nlp-metrics


https://github.com/whitejaeger/nlp-metrics

flask natural-language-processing python3

Last synced: 7 months ago
JSON representation

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.