<commit_before>JSON Tagger
===========

UDPipe finds detailed **Part-of-speech tags** (Noun, Verb, ...) in **Swedish sentences**. This code makes UDPipe available via a JSON API.

Play with it at: http://json-tagger.herokuapp.com/<commit_msg>Document how to run the project locally.<commit_after>JSON Tagger
===========

UDPipe finds detailed **Part-of-speech tags** (Noun, Verb, ...) in **Swedish sentences**. This code makes UDPipe available via a JSON API.

Play with it at: http://json-tagger.herokuapp.com/

## How to run JSON Tagger locally

JSON-Tagger is built for Python 3.6. I haven't tested it on other versions, so it might work or other 3.x versions, but not on Python 2.

1. Clone this project from GitHub: 

```
git clone https://github.com/EmilStenstrom/json-tagger.git json-tagger
```

2. Install dependencies: 

```
cd json-tagger
pip install -r requirements.txt
```

3. Start the local web server

```
python run.py --run
```

4. Surf to http://localhost:8000 in your browser!
{'fraction_non_alphanumeric': 0.13768844221105528, 'fraction_numerical': 0.012060301507537688, 'mean_word_length': 3.9306930693069306, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '437326', 'n_tokens_mistral': 333, 'n_tokens_neox': 306, 'n_words': 124}