This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', |