Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

example of transformer

from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("bert-base-uncased")
model = AutoModelForMaskedLM.from_pretrained("bert-base-uncased")
Source by huggingface.co #
 
PREVIOUS NEXT
Tagged: #transformer
ADD COMMENT
Topic
Name
1+8 =