Instructions to use tbs17/MathBERT-custom with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tbs17/MathBERT-custom with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="tbs17/MathBERT-custom")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("tbs17/MathBERT-custom") model = AutoModelForMaskedLM.from_pretrained("tbs17/MathBERT-custom") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -94,7 +94,7 @@ MathBERT is specifically designed for mathematics related tasks and works better
|
|
| 94 |
'token': 3182,
|
| 95 |
'token_str': 'places'}]
|
| 96 |
|
| 97 |
-
#Below is not
|
| 98 |
>>> unmasker("The man worked as a [MASK].")
|
| 99 |
|
| 100 |
[{'score': 0.6469377875328064,
|
|
|
|
| 94 |
'token': 3182,
|
| 95 |
'token_str': 'places'}]
|
| 96 |
|
| 97 |
+
#Below is not the desired usage
|
| 98 |
>>> unmasker("The man worked as a [MASK].")
|
| 99 |
|
| 100 |
[{'score': 0.6469377875328064,
|