Hello,
Week 3 - C2_W3_Assignment
Someone could help me with this issue please?
I am creting the function: “replace_oov_words_by_unk” and getting this error in the unit test:
Wrong number of unknown tokens in the corpus. Check the unknown token value and how you are using it.
Expected: 5
Got: 0.
Wrong output values.
Expected: [[‘sky’, ‘is’, ‘blue’, ‘.’], [‘-1’, ‘are’, ‘-1’, ‘.’], [‘space’, ‘is’, ‘infinite’, ‘-1’], [‘-1’, ‘-1’, ‘sky’, ‘is’, ‘red’]]
Got: [[‘sky’, ‘is’, ‘blue’, ‘.’], [“'replacement_token” ‘are’, ‘replacement_token’, ‘.’], [‘space’, ‘is’, ‘infinite’, ‘replacement_token’], ['replacement_token, ‘replacement_token’, ‘sky’, ‘is’, ‘red’]].
4 Tests passed
2 Tests failed
I am using: “<”+“unk”+“>” as my replacement token.