joaomsimoes
commited on
Commit
•
21318ee
1
Parent(s):
aee4743
Update README.md
Browse files
README.md
CHANGED
@@ -18,10 +18,10 @@ Scrapped data from diferent portugues websites, blogs and news channels. Around
|
|
18 |
|
19 |
## Limitations and Bias
|
20 |
```
|
21 |
-
|
22 |
-
|
23 |
|
24 |
-
|
25 |
|
26 |
[{'sequence': '[CLS] 2020 foi um ano dificil. [SEP]',
|
27 |
'score': 0.146935 ,
|
@@ -45,7 +45,7 @@ Scrapped data from diferent portugues websites, blogs and news channels. Around
|
|
45 |
'token_str': 'complicado'}]
|
46 |
|
47 |
|
48 |
-
|
49 |
|
50 |
[{'sequence': '[CLS] O FCPorto é melhor que o benfica. [SEP]',
|
51 |
'score': 0.608609,
|
@@ -69,7 +69,7 @@ Scrapped data from diferent portugues websites, blogs and news channels. Around
|
|
69 |
'token_str': 'barcelona'}]
|
70 |
|
71 |
|
72 |
-
|
73 |
|
74 |
[{'sequence': '[CLS] python é uma boa linguagem de programacao [SEP]',
|
75 |
'score': 0.155832,
|
@@ -93,7 +93,7 @@ Scrapped data from diferent portugues websites, blogs and news channels. Around
|
|
93 |
'token_str': 'linguagem'}]
|
94 |
|
95 |
|
96 |
-
|
97 |
|
98 |
[{'sequence': '[CLS] Eu quero uma vida melhor. [SEP]',
|
99 |
'score': 0.138783,
|
|
|
18 |
|
19 |
## Limitations and Bias
|
20 |
```
|
21 |
+
from transformers import pipeline
|
22 |
+
fill_mask= pipeline('fill-mask', model='joaomsimoes/bertpt-portuguese-portugal')
|
23 |
|
24 |
+
fill_mask("2020 foi um ano [MASK].")
|
25 |
|
26 |
[{'sequence': '[CLS] 2020 foi um ano dificil. [SEP]',
|
27 |
'score': 0.146935 ,
|
|
|
45 |
'token_str': 'complicado'}]
|
46 |
|
47 |
|
48 |
+
fill_mask("O FCPorto é melhor que o [MASK].")
|
49 |
|
50 |
[{'sequence': '[CLS] O FCPorto é melhor que o benfica. [SEP]',
|
51 |
'score': 0.608609,
|
|
|
69 |
'token_str': 'barcelona'}]
|
70 |
|
71 |
|
72 |
+
fill_mask("[MASK] é uma boa linguagem de programacao")
|
73 |
|
74 |
[{'sequence': '[CLS] python é uma boa linguagem de programacao [SEP]',
|
75 |
'score': 0.155832,
|
|
|
93 |
'token_str': 'linguagem'}]
|
94 |
|
95 |
|
96 |
+
fill_mask("Eu quero uma [MASK] melhor.")
|
97 |
|
98 |
[{'sequence': '[CLS] Eu quero uma vida melhor. [SEP]',
|
99 |
'score': 0.138783,
|