File size: 721 Bytes
d0fa216
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
# Math-RoBerta for NLP tasks in math learning environments

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.

### Here is how to use it with texts in HuggingFace
```python
from transformers import RobertaTokenizer, RobertaModel
tokenizer = RobertaTokenizer.from_pretrained('uf-aice-lab/math-roberta')
model = RobertaModel.from_pretrained('uf-aice-lab/math-roberta')
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```