daviddrzik commited on
Commit
918acc6
1 Parent(s): 6f1de7c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -76,7 +76,7 @@ class TokenClassifier:
76
  def __init__(self, model, tokenizer):
77
  self.model = RobertaForTokenClassification.from_pretrained(model, num_labels=14)
78
  self.tokenizer = RobertaTokenizerFast.from_pretrained(tokenizer, max_length=256)
79
- byte_utf8_mapping_path = hf_hub_download(repo_id=tokenizer, filename="byte_utf8_mapping.json", token=token)
80
  with open(byte_utf8_mapping_path, "r", encoding="utf-8") as f:
81
  self.byte_utf8_mapping = json.load(f)
82
 
 
76
  def __init__(self, model, tokenizer):
77
  self.model = RobertaForTokenClassification.from_pretrained(model, num_labels=14)
78
  self.tokenizer = RobertaTokenizerFast.from_pretrained(tokenizer, max_length=256)
79
+ byte_utf8_mapping_path = hf_hub_download(repo_id=tokenizer, filename="byte_utf8_mapping.json")
80
  with open(byte_utf8_mapping_path, "r", encoding="utf-8") as f:
81
  self.byte_utf8_mapping = json.load(f)
82