Download Load-Model from Rizqi/Emotion-Bert: direct link, hf CLI and curl.
- Browser
- Download file 272 Bytes
-
https://huggingface.co/Rizqi/Emotion-Bert/resolve/main/Load-Model
- Command line
-
hf download hf://Rizqi/Emotion-Bert/Load-Model
-
curl -L -o Load-Model https://huggingface.co/Rizqi/Emotion-Bert/resolve/main/Load-Model
272 Bytes
| PRE_TRAINED_MODEL = 'bert-base-uncased' | |
| from transformers import BertTokenizer | |
| bert_tokenizer = BertTokenizer.from_pretrained(PRE_TRAINED_MODEL) | |
| id_data = 3 | |
| print('Kalimat:', raw_data.Text[id_data]) | |
| print('BERT Tokenizer:', bert_tokenizer.tokenize(data.Text[id_data])) |