zequnl commited on
Commit
7e91828
1 Parent(s): b1a2ed7

Update molxpt_tokenizer.py

Browse files
Files changed (1) hide show
  1. molxpt_tokenizer.py +4 -1
molxpt_tokenizer.py CHANGED
@@ -1,5 +1,8 @@
1
- from transformers import BioGptTokenizer
2
  import re
 
 
 
3
  class MolxptTokenizer(BioGptTokenizer):
4
  def __init__(
5
  self,
 
1
+ from transformers import BioGptTokenizer, AutoTokenizer
2
  import re
3
+
4
+ AutoTokenizer.register(MolxptTokenizer)
5
+
6
  class MolxptTokenizer(BioGptTokenizer):
7
  def __init__(
8
  self,