You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR NUM 1: TypeError: _from_pretrained() got an unexpected keyword argument 'bert_pretrained_name_or_path'
ERROR NUM 2: When comment this line, we get a new error: _pickle.UnpicklingError: invalid load key, '<'.
it seems that the trained model is not being loaded correctly, can you help me?
The text was updated successfully, but these errors were encountered:
from neuspell import BertChecker
checker = BertChecker()
checker.from_pretrained(
bert_pretrained_name_or_path="distilbert-base-cased",
ckpt_path=f"{data_dir}/new_models/distilbert-base-cased" # ""
)
checker.evaluate(clean_file=clean_file, corrupt_file=corrupt_file, data_dir=data_dir)
ERROR NUM 1: TypeError: _from_pretrained() got an unexpected keyword argument 'bert_pretrained_name_or_path'
ERROR NUM 2: When comment this line, we get a new error: _pickle.UnpicklingError: invalid load key, '<'.
it seems that the trained model is not being loaded correctly, can you help me?
The text was updated successfully, but these errors were encountered: