Kalloniatis/Greek-Humorous-Dataset
Updated • 32 • 1
How to use Kalloniatis/Humor-Recognition-Greek-BERT with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Kalloniatis/Humor-Recognition-Greek-BERT") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Kalloniatis/Humor-Recognition-Greek-BERT")
model = AutoModelForSequenceClassification.from_pretrained("Kalloniatis/Humor-Recognition-Greek-BERT")The model was pre-trained over 10 epochs on Greek Humorous Dataset
The text needs to be pre-processed by removing all greek diacritics and punctuation and converting all letters to lowercase
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("kallantis/Humor-Recognition-Greek-BERT")
model = AutoModelForSequenceClassification.from_pretrained("kallantis/Humor-Recognition-Greek-BERT")