stefan-it / turkish-bert

Turkish BERT/DistilBERT, ELECTRA and ConvBERT models
482 stars 42 forks source link

Example for inference #33

Closed afurkank closed 10 months ago

afurkank commented 11 months ago

Hi, is there a guide to use the cased model for inference?

I'm doing:

from transformers import AutoModel, AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained("dbmdz/bert-base-turkish-cased")
model = AutoModel.from_pretrained("dbmdz/bert-base-turkish-cased")

but I can't find how to use the model from here. The tutorials on HuggingFace do not work with this model.

Thanks