Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -27,36 +27,35 @@ tags:
|
|
| 27 |
<!-- Provide a longer summary of what this model is. -->
|
| 28 |
|
| 29 |
|
| 30 |
-
|
| 31 |
|
| 32 |
-
|
| 33 |
|
| 34 |
-
|
| 35 |
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
- **Data de Treinamento:** {datetime.datetime.now().strftime("%Y-%m-%d")}
|
| 41 |
|
| 42 |
-
|
| 43 |
|
| 44 |
-
|
| 45 |
|
| 46 |
-
|
| 47 |
-
|
| 48 |
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
-
# Traduzir texto
|
| 56 |
-
input_text = "[PT] Esse rapaz é bobo [CE]"
|
| 57 |
-
result = translator(input_text, max_length=50, temperature=0.3)
|
| 58 |
-
print(result[0]['generated_text'])
|
| 59 |
-
|
| 60 |
|
| 61 |
- **Developed by:** Jackson Castro
|
| 62 |
- **Funded by [optional]:** [More Information Needed]
|
|
|
|
| 27 |
<!-- Provide a longer summary of what this model is. -->
|
| 28 |
|
| 29 |
|
| 30 |
+
# GPT-2 Cearês Translator
|
| 31 |
|
| 32 |
+
Este modelo é uma versão fine-tuned do GPT-2 em português para tradução do português padrão para o sotaque cearense.
|
| 33 |
|
| 34 |
+
## Detalhes do Modelo
|
| 35 |
|
| 36 |
+
- **Arquitetura:** GPT-2
|
| 37 |
+
- **Linguagem:** Português do Brasil
|
| 38 |
+
- **Fine-tuned para:** Tradução para sotaque cearense
|
| 39 |
+
- **Dataset:** Dataset customizado com palavras e expressões cearenses
|
|
|
|
| 40 |
|
| 41 |
+
## Como Usar
|
| 42 |
|
| 43 |
+
### Com a pipeline do Transformers
|
| 44 |
|
| 45 |
+
```python
|
| 46 |
+
from transformers import pipeline
|
| 47 |
|
| 48 |
+
translator = pipeline(
|
| 49 |
+
"text-generation",
|
| 50 |
+
model="pierreguillou/gpt2-small-portuguese",
|
| 51 |
+
tokenizer="pierreguillou/gpt2-small-portuguese"
|
| 52 |
+
)
|
| 53 |
+
|
| 54 |
+
# Traduzir texto
|
| 55 |
+
input_text = "[PT] Esse rapaz é bobo [CE]"
|
| 56 |
+
result = translator(input_text, max_length=50, temperature=0.3)
|
| 57 |
+
print(result[0]['generated_text'])
|
| 58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
|
| 60 |
- **Developed by:** Jackson Castro
|
| 61 |
- **Funded by [optional]:** [More Information Needed]
|