Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chapter3.06 Text classification.ipynb ->revision of some deprecated parts #6

Open
LiuLime opened this issue Aug 28, 2023 · 0 comments

Comments

@LiuLime
Copy link

LiuLime commented Aug 28, 2023

  1. 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.

  1. 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

@LiuLime LiuLime changed the title chapter3.06 Text classification.ipynb chapter3.06 Text classification.ipynb ->the nlp library is deprecated Aug 28, 2023
@LiuLime 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant