恭喜你!

善用 Hugging Face

Jacob H. Marquez

Lead Data Engineer

第 1 章

$$

  • 🌐 Hugging Face Hub:探索 AI 模型與資料集的平台

Hugging Face 標誌

善用 Hugging Face

第 2 章

Hugging Face 管線

善用 Hugging Face

文字分類

  • 📊 情感分析:掌握顧客情緒

$$

  • 📝 文法檢查:找出文字中的錯誤

$$

  • 🔓 類別指派:依分數分類請求

$$

pipeline(task="text-classification")

情感分析

[{'label': 'POSITIVE', 'score': 0.97}]
善用 Hugging Face

文字摘要

文字摘要範例

  • 🔧 Pipeline:設定 pipeline(task="summarization")
  • 📜 輸出長度:用 min_new_tokensmax_new_tokens 調整
善用 Hugging Face

文件問答

從文件中找答案

$$

$$

  • 📄 PDF 處理:以 pypdf.pages.extract_text() 擷取文字

$$

  • 問答管線:設定 pipeline(task="question-answering")
善用 Hugging Face

Auto Models 與 Tokenizers

更多控制與自訂

善用 Hugging Face

恭喜,謝謝你的參與!

善用 Hugging Face

Preparing Video For Download...