Download sequence from Rizqi/Emotion-Bert: direct link, hf CLI and curl.
- Browser
- Download file 221 Bytes
-
https://huggingface.co/Rizqi/Emotion-Bert/resolve/main/sequence
- Command line
-
hf download hf://Rizqi/Emotion-Bert/sequence
-
curl -L -o sequence https://huggingface.co/Rizqi/Emotion-Bert/resolve/main/sequence
221 Bytes
| token_lens = [] | |
| for txt in data.Text: | |
| tokens = bert_tokenizer.encode(txt) | |
| token_lens.append(len(tokens)) | |
| sns.histplot(token_lens, kde=True, stat='density', linewidth=0) | |
| plt.xlim([0, 100]); | |
| plt.xlabel('Token count'); |