rhaymison commited on
Commit
e2f8c8c
1 Parent(s): 2c94fc9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +22 -12
README.md CHANGED
@@ -13,25 +13,30 @@ model-index:
13
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
  should probably proofread and complete it, then remove this comment. -->
15
 
16
- # opus-en-to-pt-translate
17
-
18
- This model is a fine-tuned version of [Helsinki-NLP/opus-mt-tc-big-en-pt](https://huggingface.co/Helsinki-NLP/opus-mt-tc-big-en-pt) on the kde4 dataset.
19
- It achieves the following results on the evaluation set:
20
- - Loss: 0.5618
21
-
22
  ## Model description
 
23
 
24
- More information needed
25
 
26
- ## Intended uses & limitations
27
 
28
- More information needed
29
 
30
- ## Training and evaluation data
 
 
 
 
 
31
 
32
- More information needed
 
 
33
 
34
- ## Training procedure
 
 
 
 
35
 
36
  ### Training hyperparameters
37
 
@@ -88,6 +93,11 @@ The following hyperparameters were used during training:
88
  | 0.4179 | 2.87 | 18500 | 0.5619 |
89
  | 0.4241 | 2.94 | 19000 | 0.5618 |
90
 
 
 
 
 
 
91
 
92
  ### Framework versions
93
 
 
13
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
  should probably proofread and complete it, then remove this comment. -->
15
 
 
 
 
 
 
 
16
  ## Model description
17
+ This model is a fine tuning for translations from English to Portuguese.
18
 
 
19
 
20
+ ## How to Use
21
 
22
+ ```python
23
 
24
+ prompt = f"""
25
+ Trump received a Bachelor of Science in economics from the University of Pennsylvania in 1968, and his father named him president of his real estate business in 1971.
26
+ Trump renamed it the Trump Organization and reoriented the company toward building and renovating skyscrapers, hotels, casinos, and golf courses.
27
+ After a series of business failures in the late twentieth century, he successfully launched side ventures that required little capital, mostly by licensing the Trump name.
28
+ From 2004 to 2015, he co-produced and hosted the reality television series The Apprentice.
29
+ """
30
 
31
+ from transformers import pipeline
32
+ pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-tc-big-en-pt")
33
+ print(pipe())
34
 
35
+ #Trump recebeu um título de bacharel em economia pela Universidade da Pensilvânia em 1968, e o seu pai deu- lhe o nome de presidente do seu negócio imobiliário em 1971.
36
+ #Trump mudou o nome para Organização Trump e voltou a orientar a companhia para a construção e reforma de arranha- céus, hotéis, casinos e campos de golfe.
37
+ #Depois de uma série de falhas de negócio no fim do século XX, ele lançou com sucesso projectos paralelos que necessitaram de pouca capital, principalmente através do
38
+ #licenciamento do nome Trump. De 2004 a 2015, ele produziu em conjunto e alojou a série de reality série The Apprentice.
39
+ ```
40
 
41
  ### Training hyperparameters
42
 
 
93
  | 0.4179 | 2.87 | 18500 | 0.5619 |
94
  | 0.4241 | 2.94 | 19000 | 0.5618 |
95
 
96
+ # opus-en-to-pt-translate
97
+
98
+ This model is a fine-tuned version of [Helsinki-NLP/opus-mt-tc-big-en-pt](https://huggingface.co/Helsinki-NLP/opus-mt-tc-big-en-pt) on the kde4 dataset.
99
+ It achieves the following results on the evaluation set:
100
+ - Loss: 0.5618
101
 
102
  ### Framework versions
103