Can anyone help me for Deep N-grams programming assignment. C3W1 assignment first exercise. can anyone give me first exercise code. please
In cells leading up to the exercise, you have the exact same code you need for Exercise 1. In other words, you just need to copy the examples that are given to you.
Cheers
I did try these example but this exercise give me error again and again
OK, you have to implement two lines in this exercise:
First:
# Split the input line into individual characters
chars = None
which is exactly the same as in “Hello world” example.
Second:
# Map characters to their respective integer values using StringLookup
ids = None
which is exactly the same as in cell following this markup cell:
Tensorflow has a function
tf.keras.layers.StringLookup
that does this efficiently for list of characters. Note that…
2 Likes
No, that would break the Code of Conduct.
2 Likes