Coursera 笔记

Module 03 · Sequence Models & Attention Mechanism

Trigger Word Detection触发词检测(编程作业)

Welcome to the second (required) programming assignment in Course 5 of the Deep Learning Specialization!
欢迎来到深度学习专项课程第 5 门课程的第二(必做)编程作业!

In this assignment, you'll construct a speech dataset from synthesized data and implement an algorithm for trigger word detection (sometimes also called keyword detection, or wake word detection). Trigger word detection is the technology that allows devices like Amazon's Alexa or Apple's Siri to wake up upon hearing a certain word. At the end of this assignment, you'll be able to record a clip of yourself talking, and have the algorithm trigger a chime when it detects you saying "activate."
在本任务中,您将从合成数据构建语音数据集并实现触发词检测算法(有时也称为关键词检测或唤醒词检测)。触发词检测技术使得设备如亚马逊的 Alexa 或苹果的 Siri 能够在听到特定词语时唤醒。完成本任务后,您将能够录制一段自己的谈话,当算法检测到您说出“激活”时,会触发铃声。

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.
点击上方的“我的提交”查看成绩。评分员处理您的提交可能需要长达一分钟。您将看到作业的得分分解以及评分员的反馈。

📎 Trigger_word_detection_v2a-52f8e51e-ebbf-4dca-93e9-c25c17ebf6e9.ipynb

Source: https://www.coursera.org/learn/nlp-sequence-models/programming/MHAsK/trigger-word-detection