I have problem in deep n- grams .
In exercise 1 line to tensor i toke 0/10 . (
Way ??
@Rehab.56d well, you need a dictionary for ‘get’. That won’t work on a list. You address a list like this, with its index:
my_list = [1, 2, 3]
Then you call/reference it like my_list[index].
Or my_list[0] gives you the result ‘1’.
There is no ‘get’ method.
This exercise literally took me a week and I couldn’t solve it. Can you explain the code to me? If you can, I would appreciate it.
can you confirm the specialisation and course you chose is correct?
This seems like NLP specialisation course 3 assignment.
Kindly first confirm this.
Also posting codes from grade cell codes is against community guidelines.
If this is Deep N gram assignment from course 3 NLP specialisation, then you seem to have edited the grade cells codes beyond what it was at starting.
get a fresh copy and re-do your assignment. Also make sure not to edit anything outside markers ###START AND END CODE HERE###
THAT import tensorfow was done by you,
line to tensor grade cel has only two code lines, chars and ids
The get() method returns the value of the item with the specified key.
dictionary.get(keyname, value)
For example,
car = {
"brand": "Ford",
"model": "Mustang",
"year": 1964
}
x = car.get("price", 15000)
print(x))
This thread is in the wrong course forum area.
There is no C3 W1 assignment in the Deep Learning Specialization.