Update molxpt_tokenizer.py
Browse files- 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,
|