semvec/pypi-packages huggingface dataset:
ttd-torch 0.1.1
Transliteration of Tunisian Dialect from arabizi to Tunisia Arabic
Requires Python: >=3.6

# Transliteration of Tunisian Dialect

Transliteration of Tunisian Dialect (TTD) is a nlp tools, devloped with pytorch 1.8 and character encoding with the character-level RNN (GRU) word2word model.

## installation 

install with pip

`pip install ttd_torch`

install from source

`git clone https://github.com/suai-tn/ttd_torch.git`

or if you have password-protected SSH key

`git clone git@github.com:suai-tn/ttd_torch.git`

go to the ttd_torch directory

`cd ttd_torch`

install with pip

`pip install .`

## usage cli

transliteration of document

`ttd_torch  --doc=[path_to_doc] --out=[path_out_file] --f=[0] --t=[100] --gpu=True --escape key,value ə,a œ,oe`

or transliteration just of one line

`ttd_torch --txt ya aymen chbik lyouma `

## dev usage

import Transliteration class

`from ttd_torch.api import Transliteration `

init Transliteration class

`t = Transliteration()  `

or with custom escape rules

`t = Transliteration(escape=[(key1, val1), (key2, val2), (key3, val3)])  `

transliteration of line with

`print(t.trans("line for transliteration"))  `

or transliteration of document with params : doc => path of document for trans ,  out => path of output document , f => begin indice default 0 , t => end indice default None end of file.

`t.trans_document(doc, out, f=f, t=t)  `