自然語言處理

認識 Machine Learning

Sara Billen

Curriculum Manager at DataCamp

自然語言處理(NLP)

讓電腦理解人類語言的意義

認識 Machine Learning

詞袋模型(Bag of words)

詞袋模型

認識 Machine Learning

詞袋模型(Bag of words)

"U2 is a great band"

Word Count
U2 1
Queen 0
is 1
a 1
great 1
band 1

"Queen is a great band"

Word Count
U2 0
Queen 1
is 1
a 1
great 1
band 1
認識 Machine Learning

詞袋模型:n-gram

"That book is not great"

Word Count
That 1
book 1
is 1
not 1
great 1

2-gram(bi-gram)

Word Count
That book 1
book is 1
is not 1
not great 1
認識 Machine Learning

詞袋模型:限制

  • 詞頻無法處理同義詞
  • 例如:「blue」
    • 「sky-blue」
    • 「aqua」
    • 「cerulean」
  • 希望歸為單一特徵

blue

認識 Machine Learning

詞向量(Word embeddings)

詞向量(Word embeddings)

  • 建立能將相似詞彙分組的特徵
  • 特徵具備數學意義:

$$

king - man + woman = queen

認識 Machine Learning

語言翻譯

以神經網路做翻譯

認識 Machine Learning

應用範例

  • 語言翻譯
  • 聊天機器人
  • 個人助理
  • 情緒分析

男子用智慧型手機與聊天機器人對話

認識 Machine Learning

深度學習

  • 兩大問題類型
    • 電腦視覺
    • 自然語言處理
  • 為何用深度學習?
    • 問題複雜
    • 自動特徵擷取
    • 數據量龐大

認識 Machine Learning

一起來練習吧!

認識 Machine Learning

Preparing Video For Download...