Update README.md
Browse files
README.md
CHANGED
@@ -534,7 +534,7 @@ from transformers import AutoTokenizer, AutoModel, utils
|
|
534 |
from bertviz import model_view
|
535 |
utils.logging.set_verbosity_error() # Suppress standard warnings
|
536 |
|
537 |
-
model_name = "
|
538 |
input_text = "[C] [C] [=Branch1] [C] [=O] [O] [C] [C] [N+1] [Branch1] [C] [C] [Branch1] [C] [C] [C]"
|
539 |
model = AutoModel.from_pretrained(model_name, output_attentions=True) # Configure model to return attention values
|
540 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
|
|
534 |
from bertviz import model_view
|
535 |
utils.logging.set_verbosity_error() # Suppress standard warnings
|
536 |
|
537 |
+
model_name = "gbyuvd/chemselfies-base-bertmlm"
|
538 |
input_text = "[C] [C] [=Branch1] [C] [=O] [O] [C] [C] [N+1] [Branch1] [C] [C] [Branch1] [C] [C] [C]"
|
539 |
model = AutoModel.from_pretrained(model_name, output_attentions=True) # Configure model to return attention values
|
540 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|