Merge branch 'main' of https://huggingface.co/uf-aice-lab/math_roberta
Browse files
README.md
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Math-RoBerta for NLP tasks in math learning environments
|
2 |
+
|
3 |
+
This model is fine-tuned with RoBERTa-large with over 3,000,000 posts and replies from students and instructors in Algebra Nation (https://www.mathnation.com/). It can potentially provide a good base performance on NLP related tasks in similar math learning environments.
|
4 |
+
|
5 |
+
### Here is how to use it with texts in HuggingFace
|
6 |
+
```python
|
7 |
+
from transformers import RobertaTokenizer, RobertaModel
|
8 |
+
tokenizer = RobertaTokenizer.from_pretrained('uf-aice-lab/math-roberta')
|
9 |
+
model = RobertaModel.from_pretrained('uf-aice-lab/math-roberta')
|
10 |
+
text = "Replace me by any text you'd like."
|
11 |
+
encoded_input = tokenizer(text, return_tensors='pt')
|
12 |
+
output = model(**encoded_input)
|
13 |
+
```
|