Pretrained-Language-Model
Pretrained-Language-Model copied to clipboard
from transformer import modeling时报AttributeError: module 'cryptography.utils' has no attribute 'Enum'
import sys sys.path.append('/path/TinyBERT/') from transformer import modeling model = modeling.TinyBertForSequenceClassification.from_pretrained('/path/chinese-roberta-wwm-ext', num_labels=num_labels)
class Encoding(utils.Enum):
AttributeError: module 'cryptography.utils' has no attribute 'Enum'