Module 02 · Natural Language Processing & Word Embeddings
Emojify表情符号化
Welcome to the second assignment of Week 2, Course 5 of the Deep Learning Specialization! You're going to use word vector representations to build two Emojifiers: the first will be a baseline model using pre-trainedword embeddings, and the second will be a more sophisticated version using an LSTM! 🤩 💫 🔥
欢迎来到第 2 周第 5 门深度学习专项课程的第二项作业!您将使用词向量表示来构建两个表情符号生成器:第一个将是一个使用预训练词嵌入的基线模型,第二个将是一个更复杂的版本,使用 LSTM!🤩 💫 🔥
You'll implement a model which inputs a sentence (such as "Let's go see the baseball game tonight!") and finds the most appropriate emoji to be used with this sentence (⚾️).
您将实现一个模型,该模型输入一个句子(例如:“今晚我们去看看棒球比赛!”)并找到与这个句子最合适的表情符号(⚾️)。
Instructions: 说明:
-
Do not use loops (for/while) in your code, unless the instructions explicitly ask you to do so.
不要在您的代码中使用循环(for/while),除非说明中明确要求这样做。 -
Some code blocks contain graded functions, where you’ll be expected to write some code. These are marked at the top of the block by a #GRADED FUNCTION comment, and you’ll write your code in between the ### START SOLUTION HERE ### and ###END SOLUTION HERE### comments. Also, look for another comment that indicates roughly how many lines of code it will take to complete. After coding your function, run the cell right below it. This cell checks whether your results are correct, and cannot be modified.
某些代码块包含评分函数,您需要编写一些代码。这些函数在代码块顶部以#评分函数注释标记,您将在### START SOLUTION HERE ###和###END SOLUTION HERE###注释之间编写代码。还要寻找另一个注释,它大致说明了完成代码需要多少行。编写完函数后,运行其下方的单元格。此单元格检查您的结果是否正确,且不能修改。
When you run that cell and see the following:
当你运行该单元格并看到以下内容:
"All tests passed." 所有测试通过。
...You’re in good shape. :)
你状态良好。 :)
Take your time to complete this assignment! After you are done, submit your work and check your results. You need to score 70% to pass. Good luck! :)
请慢慢完成这项作业!完成后,提交你的作品并检查你的结果。你需要得到 70%的分数才能通过。祝你好运! :)
Click on "My Submission" above to see your grades. It might take up to one minute for the graders to process your submission. You will see the point breakdown of your assignment, along with the grader feedback.
点击上方的“我的提交”查看成绩。评分员处理您的提交可能需要长达一分钟。您将看到作业的得分分解以及评分员的反馈。
📎 Emoji_v3a-3f676146-2ebb-4ec7-b318-30b2799234df.ipynb
Source: https://www.coursera.org/learn/nlp-sequence-models/programming/SrY2e/emojify