from transformers import AutoModelForTokenClassification
model = AutoModelForTokenClassification.from_pretrained(“bert-base-uncased”)
Error:
Failed to import transformers.models.bert.modeling_bert because of the following error (look up to see its traceback):
module functions cannot set METH_CLASS or METH_STATIC
ValueError: module functions cannot set METH_CLASS or METH_STATIC