Two questions on C3W2 assignment

Can anybody know?

  1. I could not split between training and validation. It all goes to training

after this
# Split the sentences and labels into train/validation splits
train_sentences = sentences[0:training_size]
train_labels = labels[0:training_size]

I got this
There are 2225 sentences for training.
There are 2225 labels for training.
There are 0 sentences for validation.
There are 0 labels for validation.

  1. What would be this sentence? I can’t find it anywhere.

Convert sequences to a numpy array. Don’t forget to substact 1 from every entry in the array!

label_seq_np = np

Thanks, Anthony

There are 2225 sentences in the call to train_val_split. Please fix your calculation of train_size taking training_split into account.

This is the expected output:

There are 1780 sentences for training.

There are 1780 labels for training.

There are 445 sentences for validation.

There are 445 labels for validation.