File size: 599 Bytes
91f61cc
 
 
73f39b8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9419311
73f39b8
d2c9878
5771b89
 
d2c9878
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
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 eu_gl.ct2_10k input_file_bpe.txt >output_file_bpe.txt
```
+ DeBPEzar output txt:

```bash 
cat  out_test_bpe.txt | sed "s/@@ //g" > output_file.txt
```