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
When I running this chapter, it comes out following wrong message:
AttributeError: module 'dill._dill' has no attribute 'PY3'
I searched on internet, and it seems that nlp library is deprecated, so I changed from nlp import load_dataset to from datasets import load_dataset, and it works.
In following codes: training_args = TrainingArguments( output_dir='./results', num_train_epochs=epochs, per_device_train_batch_size=batch_size, per_device_eval_batch_size=batch_size, warmup_steps=warmup_steps, weight_decay=weight_decay, evaluate_during_training=True, logging_dir='./logs', )
evaluate_during_training=True is deprecated, new one is evaluation_strategy="steps""no""epoch"
By the way, my package version:
transformers 4.32.0
nlp 0.4.0
python 3.10
datasets 2.14.4
Hope it helps
The text was updated successfully, but these errors were encountered:
LiuLime
changed the title
chapter3.06 Text classification.ipynb
chapter3.06 Text classification.ipynb ->the nlp library is deprecated
Aug 28, 2023
LiuLime
changed the title
chapter3.06 Text classification.ipynb ->the nlp library is deprecated
chapter3.06 Text classification.ipynb ->revision of some deprecated parts
Aug 28, 2023
AttributeError: module 'dill._dill' has no attribute 'PY3'
I searched on internet, and it seems that nlp library is deprecated, so I changed
from nlp import load_dataset
tofrom datasets import load_dataset
, and it works.training_args = TrainingArguments( output_dir='./results', num_train_epochs=epochs, per_device_train_batch_size=batch_size, per_device_eval_batch_size=batch_size, warmup_steps=warmup_steps, weight_decay=weight_decay, evaluate_during_training=True, logging_dir='./logs', )
evaluate_during_training=True
is deprecated, new one isevaluation_strategy="steps""no""epoch"
By the way, my package version:
transformers 4.32.0
nlp 0.4.0
python 3.10
datasets 2.14.4
Hope it helps
The text was updated successfully, but these errors were encountered: