Skip to content

Instantly share code, notes, and snippets.

View Sandeep0408's full-sized avatar

K U Sandeep Kumar Sandeep0408

  • Netherlands
View GitHub Profile
from transformers import AutoTokenizer,T5TokenizerFast,T5Tokenizer
tokenizer = AutoTokenizer.from_pretrained('yhavinga/t5-base-dutch')
reading df = pd.read_csv()
#Below replaces the English text to Dutch
emotion_mapping = {
'neutral': 'neutraal',
'joy': 'vreugde',
'fear': 'angst',