File size: 247 Bytes
823744f
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
from transformers import PreTrainedTokenizerFast
from huggingface_hub import hf_hub_download

repo_id = "aaljabari/arabic-relation-extraction-v1"

tokenizer = PreTrainedTokenizerFast(
    tokenizer_file=hf_hub_download(repo_id, "tokenizer.json")
)