Vít Novotný
commited on
Commit
•
6b90090
1
Parent(s):
f353573
Update section *How to use* in `README.md`
Browse files
README.md
CHANGED
@@ -55,24 +55,24 @@ You can use this model directly with a pipeline for masked language modeling:
|
|
55 |
>>> unmasker = pipeline('fill-mask', model='witiko/mathberta')
|
56 |
>>> unmasker(r"If [MATH] \theta = \pi [/MATH] , then [MATH] \sin(\theta) [/MATH] is <mask>.")
|
57 |
|
58 |
-
[{'sequence': ' If
|
59 |
-
'score': 0.
|
60 |
'token': 4276,
|
61 |
'token_str': ' zero'},
|
62 |
-
{'sequence': ' If
|
63 |
-
'score': 0.
|
64 |
'token': 321,
|
65 |
'token_str': ' 0'},
|
66 |
-
{'sequence': ' If
|
67 |
-
'score': 0.
|
68 |
-
'token':
|
69 |
-
'token_str': '
|
70 |
-
{'sequence': ' If
|
71 |
-
'score': 0.
|
72 |
'token': 112,
|
73 |
'token_str': ' 1'},
|
74 |
-
{'sequence': ' If
|
75 |
-
'score': 0.
|
76 |
'token': 190,
|
77 |
'token_str': ' even'}]
|
78 |
```
|
|
|
55 |
>>> unmasker = pipeline('fill-mask', model='witiko/mathberta')
|
56 |
>>> unmasker(r"If [MATH] \theta = \pi [/MATH] , then [MATH] \sin(\theta) [/MATH] is <mask>.")
|
57 |
|
58 |
+
[{'sequence': ' If \\theta = \\pi, then\\sin(\\theta ) is zero.'
|
59 |
+
'score': 0.23291291296482086,
|
60 |
'token': 4276,
|
61 |
'token_str': ' zero'},
|
62 |
+
{'sequence': ' If \\theta = \\pi, then\\sin(\\theta ) is 0.'
|
63 |
+
'score': 0.11734672635793686,
|
64 |
'token': 321,
|
65 |
'token_str': ' 0'},
|
66 |
+
{'sequence': ' If \\theta = \\pi, then\\sin(\\theta ) is real.'
|
67 |
+
'score': 0.0793389230966568,
|
68 |
+
'token': 588,
|
69 |
+
'token_str': ' real'},
|
70 |
+
{'sequence': ' If \\theta = \\pi, then\\sin(\\theta ) is 1.'
|
71 |
+
'score': 0.0753420740365982,
|
72 |
'token': 112,
|
73 |
'token_str': ' 1'},
|
74 |
+
{'sequence': ' If \\theta = \\pi, then\\sin(\\theta ) is even.'
|
75 |
+
'score': 0.06487451493740082,
|
76 |
'token': 190,
|
77 |
'token_str': ' even'}]
|
78 |
```
|