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
In Exercise 3, from keras.preprocessing.sequence import pad_sequences does not work. I used:
from keras_preprocessing.sequence import pad_sequences instead.
Exercises Week 9
In the "Initialize the pre-trained BERT model" section, there is a typo:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
model = AutoModelForSequenceClassification.from_pretrained(model_nameame, num_labels=len(id2label)).to(device_name)
"model_nameame" should be "model_name" instead.
Chapter 11.5
In Example 11.14, "get_feature_names()" seems to be outdated. I fixed this by calling the newer version
"get_feature_names_out()".
The text was updated successfully, but these errors were encountered:
(still need to check)
In Exercise 3, from keras.preprocessing.sequence import pad_sequences does not work. I used:
from keras_preprocessing.sequence import pad_sequences instead.
Exercises Week 9
from transformers import AutoTokenizer, AutoModelForSequenceClassification
model = AutoModelForSequenceClassification.from_pretrained(model_nameame, num_labels=len(id2label)).to(device_name)
"model_nameame" should be "model_name" instead.
Chapter 11.5
"get_feature_names_out()".
The text was updated successfully, but these errors were encountered: