Update README.md
Browse files
README.md
CHANGED
|
@@ -3,7 +3,8 @@
|
|
| 3 |
This model is further pre-trained on the Mathematics StackExchange questions and answers. It is based on Albert base v2 and uses the same tokenizer. In addition to pre-training the model was finetuned on Math Question Answer Retrieval. The sequence classification head is trained to output a relevance score if you input the question as the first segment and the answer as the second segment. You can use the relevance score to rank different answers for retrieval.
|
| 4 |
|
| 5 |
## Usage
|
| 6 |
-
```
|
|
|
|
| 7 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 8 |
import torch
|
| 9 |
|
|
@@ -39,7 +40,7 @@ for i in range(len(classes)):
|
|
| 39 |
## Reference
|
| 40 |
If you use this model, please consider referencing our paper:
|
| 41 |
|
| 42 |
-
```
|
| 43 |
@inproceedings{reusch2021tu_dbs,
|
| 44 |
title={TU\_DBS in the ARQMath Lab 2021, CLEF},
|
| 45 |
author={Reusch, Anja and Thiele, Maik and Lehner, Wolfgang},
|
|
|
|
| 3 |
This model is further pre-trained on the Mathematics StackExchange questions and answers. It is based on Albert base v2 and uses the same tokenizer. In addition to pre-training the model was finetuned on Math Question Answer Retrieval. The sequence classification head is trained to output a relevance score if you input the question as the first segment and the answer as the second segment. You can use the relevance score to rank different answers for retrieval.
|
| 4 |
|
| 5 |
## Usage
|
| 6 |
+
```python
|
| 7 |
+
# based on https://huggingface.co/docs/transformers/main/en/task_summary#sequence-classification
|
| 8 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 9 |
import torch
|
| 10 |
|
|
|
|
| 40 |
## Reference
|
| 41 |
If you use this model, please consider referencing our paper:
|
| 42 |
|
| 43 |
+
```bibtex
|
| 44 |
@inproceedings{reusch2021tu_dbs,
|
| 45 |
title={TU\_DBS in the ARQMath Lab 2021, CLEF},
|
| 46 |
author={Reusch, Anja and Thiele, Maik and Lehner, Wolfgang},
|