fbohorquez
commited on
Commit
•
fd1b1e8
1
Parent(s):
bf85432
Update README.md
Browse files
README.md
CHANGED
@@ -1,34 +1,111 @@
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
-
tags:
|
4 |
-
- generated_from_trainer
|
5 |
datasets:
|
6 |
-
- es2bash
|
7 |
-
|
8 |
-
-
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
---
|
11 |
|
12 |
-
|
13 |
-
should probably proofread and complete it, then remove this comment. -->
|
14 |
|
15 |
-
|
|
|
|
|
16 |
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
-
|
|
|
|
|
22 |
|
23 |
-
|
24 |
|
25 |
-
## Intended uses & limitations
|
26 |
|
27 |
-
|
28 |
|
29 |
-
##
|
30 |
|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
|
33 |
## Training procedure
|
34 |
|
|
|
1 |
---
|
2 |
license: apache-2.0
|
|
|
|
|
3 |
datasets:
|
4 |
+
- dev2bit/es2bash
|
5 |
+
language:
|
6 |
+
- es
|
7 |
+
pipeline_tag: text2text-generation
|
8 |
+
tags:
|
9 |
+
- code
|
10 |
+
- bash
|
11 |
+
widget:
|
12 |
+
- text: Muestra el contenido de file.py que se encuentra en ~/project/
|
13 |
+
example_title: cat
|
14 |
+
- text: Lista los 3 primeros archivos en /bin
|
15 |
+
example_title: ls
|
16 |
+
- text: Por favor, cambia al directorio /home/user/project/
|
17 |
+
example_title: cd
|
18 |
+
- text: Lista todos los átomos del universo
|
19 |
+
example_title: noCommand
|
20 |
+
- text: ls -lh
|
21 |
+
example_title: literal
|
22 |
+
- text: file.txt
|
23 |
+
example_title: simple
|
24 |
---
|
25 |
|
26 |
+
# es2bash-mt5: Modelo de traducción de español a Bashcd
|
|
|
27 |
|
28 |
+
<p align="center">
|
29 |
+
<img width="460" height="300" src="https://dev2bit.com/wp-content/themes/lovecraft_child/assets/icons/dev2bit_monitor2.svg">
|
30 |
+
</p>
|
31 |
|
32 |
+
Developed by dev2bit, es2bash-mt5 is a language transformer model that is capable of predicting the optimal Bash command given a natural language request in Spanish. This model represents a major advancement in human-computer interaction, providing a natural language interface for Unix operating system commands.
|
33 |
+
|
34 |
+
## About the Model
|
35 |
+
|
36 |
+
es2bash-mt5 is a fine-tuning model based on mt5-small. It has been trained on the dev2bit/es2bash dataset, which specializes in translating natural language in Spanish into Bash commands.
|
37 |
+
|
38 |
+
This model is optimized for processing requests related to the commands:
|
39 |
+
|
40 |
+
* `cat`
|
41 |
+
* `ls`
|
42 |
+
* `cd`
|
43 |
+
|
44 |
+
## Usage
|
45 |
+
|
46 |
+
Below is an example of how to use es2bash-mt5 with the Hugging Face Transformers library:
|
47 |
+
|
48 |
+
```python
|
49 |
+
from transformers import pipeline
|
50 |
+
|
51 |
+
translator = pipeline('translation', model='dev2bit/es2bash-mt5')
|
52 |
+
|
53 |
+
request = "listar los archivos en el directorio actual"
|
54 |
+
translated = translator(request, max_length=512)
|
55 |
+
print(translated[0]['translation_text'])
|
56 |
+
```
|
57 |
+
This will print the Bash command corresponding to the given Spanish request.
|
58 |
+
|
59 |
+
## Contributions
|
60 |
+
We appreciate your contributions! You can help improve es2bash-mt5 in various ways, including:
|
61 |
|
62 |
+
* Testing the model and reporting any issues or suggestions in the Issues section.
|
63 |
+
* Improving the documentation.
|
64 |
+
* Providing usage examples.
|
65 |
|
66 |
+
---
|
67 |
|
|
|
68 |
|
69 |
+
Desarrollado por dev2bit, `es2bash-mt5` es un modelo transformador de lenguaje que tiene la capacidad de predecir el comando Bash óptimo dada una solicitud en lenguaje natural en español. Este modelo representa un gran avance en la interacción humano-computadora, proporcionando una interfaz de lenguaje natural para los comandos del sistema operativo Unix.
|
70 |
|
71 |
+
## Sobre el modelo
|
72 |
|
73 |
+
`es2bash-mt5` es un modelo de ajuste fino basado en `mt5-small`. Ha sido entrenado en el conjunto de datos `dev2bit/es2bash`, especializado en la traducción de lenguaje natural en español a comandos Bash.
|
74 |
+
|
75 |
+
Este modelo está optimizado para procesar solicitudes relacionadas con los comandos:
|
76 |
+
* `cat`
|
77 |
+
* `ls`
|
78 |
+
* `cd`
|
79 |
+
|
80 |
+
## Uso
|
81 |
+
|
82 |
+
A continuación, se muestra un ejemplo de cómo usar `es2bash-mt5` con la biblioteca Hugging Face Transformers:
|
83 |
+
|
84 |
+
```python
|
85 |
+
from transformers import pipeline
|
86 |
+
|
87 |
+
translator = pipeline('translation', model='dev2bit/es2bash-mt5')
|
88 |
+
|
89 |
+
request = "listar los archivos en el directorio actual"
|
90 |
+
translated = translator(request, max_length=512)
|
91 |
+
print(translated[0]['translation_text'])
|
92 |
+
```
|
93 |
+
|
94 |
+
Esto imprimirá el comando Bash correspondiente a la solicitud dada en español.
|
95 |
+
|
96 |
+
## Contribuciones
|
97 |
+
|
98 |
+
Agradecemos sus contribuciones! Puede ayudar a mejorar es2bash-mt5 de varias formas, incluyendo:
|
99 |
+
|
100 |
+
* Probar el modelo y reportar cualquier problema o sugerencia en la sección de Issues.
|
101 |
+
* Mejorando la documentación.
|
102 |
+
* Proporcionando ejemplos de uso.
|
103 |
+
|
104 |
+
---
|
105 |
+
|
106 |
+
This model is a fine-tuned version of [google/mt5-small](https://huggingface.co/google/mt5-small) on the es2bash dataset.
|
107 |
+
It achieves the following results on the evaluation set:
|
108 |
+
- Loss: 0.0928
|
109 |
|
110 |
## Training procedure
|
111 |
|