Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,21 @@
|
|
1 |
---
|
2 |
license: mit
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: mit
|
3 |
---
|
4 |
+
**Como traducir con este Modelo**
|
5 |
+
|
6 |
+
+ Instalar [Python 3.9](https://www.python.org/downloads/release/python-390/) + ctranslate 2 + subword-nmt
|
7 |
+
```bash
|
8 |
+
pip install ctranslate2~=3.20.0
|
9 |
+
```
|
10 |
+
```bash
|
11 |
+
pip install subword-nmt
|
12 |
+
```
|
13 |
+
+ procesar texto con BPE:
|
14 |
+
```bash
|
15 |
+
subword-nmt apply-bpe -c gl-detok10k.code < input_file.txt > input_file_bpe.txt
|
16 |
+
```
|
17 |
+
|
18 |
+
+ Traducir un input_text utilizando NOS-MT-eu-gl:
|
19 |
+
```bash
|
20 |
+
python3 trans_ct2.py ct2_detok-ca-gl_sint_10k input_file_bpe.txt >output_file_bpe.txt
|
21 |
+
```
|