imdbo's picture
Update README.md
ab1b05e verified
|
raw
history blame
516 Bytes
---
license: mit
---
**Como traducir con este Modelo**
+ Instalar [Python 3.9](https://www.python.org/downloads/release/python-390/) + ctranslate 2 + subword-nmt
```bash
pip install ctranslate2~=3.20.0
```
```bash
pip install subword-nmt
```
+ procesar texto con BPE:
```bash
subword-nmt apply-bpe -c gl-detok10k.code < input_file.txt > input_file_bpe.txt
```
+ Traducir un input_text utilizando NOS-MT-eu-gl:
```bash
python3 trans_ct2.py ct2_detok-ca-gl_sint_10k input_file_bpe.txt >output_file_bpe.txt
```