Update README.md
Browse files
README.md
CHANGED
@@ -28,15 +28,17 @@ To use the model:
|
|
28 |
from transformers import pipeline
|
29 |
|
30 |
model = pipeline('fill-mask', model='ihk/ojobert', tokenizer='ihk/ojobert')
|
31 |
-
|
32 |
```
|
33 |
|
34 |
An example use is as follows:
|
35 |
|
|
|
|
|
36 |
text = "Would you like to join a major [MASK] company?"
|
37 |
-
model(text, top_k=3)
|
|
|
|
|
38 |
|
39 |
-
```
|
40 |
>> [{'score': 0.1886572688817978,
|
41 |
'token': 13859,
|
42 |
'token_str': 'pharmaceutical',
|
|
|
28 |
from transformers import pipeline
|
29 |
|
30 |
model = pipeline('fill-mask', model='ihk/ojobert', tokenizer='ihk/ojobert')
|
|
|
31 |
```
|
32 |
|
33 |
An example use is as follows:
|
34 |
|
35 |
+
```
|
36 |
+
|
37 |
text = "Would you like to join a major [MASK] company?"
|
38 |
+
results = model(text, top_k=3)
|
39 |
+
|
40 |
+
results
|
41 |
|
|
|
42 |
>> [{'score': 0.1886572688817978,
|
43 |
'token': 13859,
|
44 |
'token_str': 'pharmaceutical',
|