This is the error I encountered when trying to apply to the dataset, is there any way to fix it?
/usr/local/lib/python3.10/dist-packages/transformers/tokenization_utils_base.py
AttributeError Traceback (most recent call last) in () ----> 1 train_ds= train_dataset.map(encode) 2 # valid_ds= valid_dataset.map(encode) 21 frames /usr/local/lib/python3.10/dist-packages/datasets/utils/py_utils.py in _save_code(pickler, obj) 393 co_firstlineno = 1 if obj.co_filename.startswith("
Источник: https://stackoverflow.com/questions/780 ... ribute-py3