Downloads · 30 days
31
3% of all-time downloads
OMazzuzi90/Ita2SqlModel
Ita2SqlModel is a translation model from OMazzuzi90. Use it when you need text moved from one language to another. It is set up for transformers. The card lists the license as apache-2.0.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
31
3% of all-time downloads
All-time downloads
917
Public
Parameters
60.5M
8 GB on disk
Likes
0
Public
Click a slice to open those files.
.bin242 MB · 50%
From the Hugging Face model README
This model is a fine-tuned version of t5-small on OMazzuzi90/Ita2Sql_data_train. dataset.
The following model is created with the aim of verifying if it is possible to translate the Italian language into SQL script. The model is trained on a self-created dataset that associates various Italian sentences with a SQL script, in which synonyms are used.
For Example the script SELECT * FROM CLIENTI, in Italian it could be expressed by the following sentences:
Clearly, with a much larger and more comprehensive dataset, for instance, one that includes all possible synonyms of an Italian verb, the model would be capable of being significantly more accurate. Currently, the dataset consists of about 21k rows.
The model takes uppercase sentences as input, with the prefix "TRANSLATE ITA TO SQL: " followed by the phrase that you want to try to translate.
Here are some functional and usable examples:
TRANSLATE ITA TO SQL: MOSTRAMI TUTTI I [TABLE] Ex: TRANSLATE ITA TO SQL: MOSTRAMI TUTTI I CLIENTI SELECT * FROM CLIENTI
TRANSLATE ITA TO SQL: MOSTRAMI [COLUMN] DEI [TABLE] Ex: TRANSLATE ITA TO SQL: MOSTRAMI NOME DEI CLIENTI SELECT NOME FROM CLIENTI
TRANSLATE ITALIAN TO SQL: MOSTRAMI [COLUMN] DEI [TABLE] QUANDO [COLUMN] COMPRESA TRA [PARAM1] E [PARAM2] Ex: TRANSLATE ITALIAN TO SQL: MOSTRAMI NOME DEI CLIENTI QUANDO ETA COMPRESA TRA 18 E 23 SELECT NOME FROM CLIENTI WHERE ETA BETWEEN 18 AND 23
TRANSLATE ITALIAN TO SQL: MOSTRAMI [COLUMN1],[COLUMN2] DEI [TABLE] QUANDO [COLUMNI] UGUALE [PARAM] Ex: TRANSLATE ITALIAN TO SQL: MOSTRAMI NOME,COGNOME DEI GIOCATORI QUANDO SQUADRA UGUALE INTER SELECT NOME,COGNOME FROM CLIENTI WHERE SQUADRA =’INTER’
TRANSLATE ITALIAN TO SQL: FAMMI VEDERE [COLUMN1],[COLUMN2],[COLUMNX] DEI [TABLE] QUANDO [COLUM] UGUALE [PARAM1] OPPURE [PARAM2] Ex : TRANSLATE ITALIAN TO SQL: MOSTRAMI NOME,COGNOME,ID,ETA DEI CLIENTI QUANDO NOME UGUALE ALESSIO OPPURE MARCO SELECT NOME,COGNOME,ID,ETA FROM CLIENTI WHERE NOME =’ALESSIO’ OR NOME=’MARCO'
More information needed
You can see https://huggingface.co/OMazzuzi90/Ita2SqlModel/tensorboard for more details.
The following hyperparameters were used during training: