Commit
·
af9ae97
1
Parent(s):
d185ff4
Include copy+paste code for use.
Browse files
README.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
| 1 |
# About this model: Topical Change Detection in Documents
|
| 2 |
-
This
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
# Training objective
|
| 5 |
The training task is to determine whether two text segments (paragraphs) belong to the same topical section or not. This can be utilized to create a topical segmentation of a document by consecutively predicting the "togetherness" of two models.
|
|
|
|
| 1 |
# About this model: Topical Change Detection in Documents
|
| 2 |
+
This network has been fine-tuned for the task described in the paper *Topical Change Detection in Documents via Embeddings of Long Sequences* and is our best-performing base-transformer model. You can find more detailed information in our GitHub page for the paper [here](https://github.com/dennlinger/TopicalChange), or read the [paper itself](https://arxiv.org/abs/2012.03619). The weights are based on RoBERTa-base.
|
| 3 |
+
|
| 4 |
+
# Load the model
|
| 5 |
+
```python
|
| 6 |
+
from transformers import AutoModel, AutoTokenizer
|
| 7 |
+
tokenizer = AutoTokenizer.from_pretrained('dennlinger/roberta-cls-consec')
|
| 8 |
+
model = AutoModel.from_pretrained('dennlinger/roberta-cls-consec')
|
| 9 |
+
```
|
| 10 |
|
| 11 |
# Training objective
|
| 12 |
The training task is to determine whether two text segments (paragraphs) belong to the same topical section or not. This can be utilized to create a topical segmentation of a document by consecutively predicting the "togetherness" of two models.
|