## Model Description
Quantized version [uk-morph model](https://huggingface.co/ukr-models/uk-morph). Returns both UPOS and morphological features (joined by double underscore symbol)

## How to Use

After cloning the repository, please use the following code (download script get_predictions.py from the repository, it uses [package tokenize_uk](https://pypi.org/project/tokenize_uk/) for splitting)
```py
from transformers import AutoTokenizer
import torch
from get_predictions import get_word_predictions

tokenizer = AutoTokenizer.from_pretrained("./")
model = torch.load("./pytorch_model.bin")

with open('./morph_labels.txt', 'r') as labels_file:
    labels_list = labels_file.readlines()
labels_list = [label.strip() for label in labels_list]

texts = ["Могила Тараса Шевченка — місце поховання видатного українського поета Тараса Шевченка в місті Канів (Черкаська область) на Чернечій горі, над яким із 1939 року височіє бронзовий пам'ятник роботи скульптора Матвія Манізера."]
get_word_predictions(model, tokenizer, texts, labels_list)
```

{"language": ["uk"], "license": "mit", "tags": ["ukrainian"]}
pytorch ukrainian uk license:mit region:us
TAGS
#pytorch #ukrainian #uk #license-mit #region-us 

## Model Description
Quantized version uk-morph model. Returns both UPOS and morphological features (joined by double underscore symbol)

## How to Use

After cloning the repository, please use the following code (download script get_predictions.py from the repository, it uses package tokenize_uk for splitting)


## Model Description
Quantized version uk-morph model. Returns both UPOS and morphological features (joined by double underscore symbol) ## How to Use

After cloning the repository, please use the following code (download script get_predictions.py from the repository, it uses package tokenize_uk for splitting)
TAGS
#pytorch #ukrainian #uk #license-mit #region-us 
 ## Model Description
Quantized version uk-morph model. Returns both UPOS and morphological features (joined by double underscore symbol) ## How to Use

After cloning the repository, please use the following code (download script get_predictions.py from the repository, it uses package tokenize_uk for splitting)
passage: TAGS
#pytorch #ukrainian #uk #license-mit #region-us 
## Model Description
Quantized version uk-morph model. Returns both UPOS and morphological features (joined by double underscore symbol)## How to Use

After cloning the repository, please use the following code (download script get_predictions.py from the repository, it uses package tokenize_uk for splitting)