electra-base-discriminator-finetuned-conll03-english / convert_pytorch_to_tensorflow.py
bhadresh-savani's picture
added tf abd
b058840
raw
history blame
164 Bytes
from transformers import TFAutoModelForTokenClassification
model = TFAutoModelForTokenClassification.from_pretrained("./", from_pt=True)
model.save_pretrained("./")