File size: 858 Bytes
5074cb6
 
f63adb6
 
 
 
 
5074cb6
f63adb6
 
df1dfe8
f63adb6
5074cb6
 
 
 
 
123b354
b4ebe8c
 
5074cb6
b4ebe8c
 
5074cb6
b4ebe8c
5074cb6
b4ebe8c
 
5074cb6
e76e619
 
b4ebe8c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
library_name: transformers
datasets:
- kallantis/Greek-Humorous-Dataset
language:
- el
pipeline_tag: text-classification
---
#
#
# The model is based on XLM-RoBERTa large ("xlm-roberta-large") fine-tuned for Humor Recognition in Greek language.
# 



## Model Details

The model was pre-trained over 10 epochs on Greek Humorous Dataset 
#
## Pre-processing details

The text needs to be pre-processed by removing all greek diacritics and punctuation 
and converting all letters to lowercase

## Load Pretrained Model

```python
from transformers import AutoTokenizer, XLMRobertaForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("kallantis/Humor-Recognition-Greek-XLM-R-large")
model = XLMRobertaForSequenceClassification.from_pretrained("kallantis/Humor-Recognition-Greek-XLM-R-large", num_labels=2, ignore_mismatched_sizes=True)
```