Hub 文件

在網頁中嵌入資料集檢視器

Hugging Face's logo
加入 Hugging Face 社群

並獲得增強的文件體驗

開始使用

在網頁中嵌入資料集檢視器

您可以使用 iframe 在自己的網頁中嵌入資料集檢視器。

使用的 URL 為 https://huggingface.co/datasets/<namespace>/<dataset-name>/embed/viewer,其中 <namespace> 是資料集所有者(使用者或組織),<dataset-name> 是資料集名稱。您還可以傳遞其他引數,例如子集、分割、過濾器、搜尋或選定行。

例如,以下 iframe 嵌入了來自 nyu-mll 組織的 glue 資料集的資料集檢視器

<iframe
  src="https://huggingface.co/datasets/nyu-mll/glue/embed/viewer"
  frameborder="0"
  width="100%"
  height="560px"
></iframe>

您也可以直接從資料集檢視器介面獲取嵌入程式碼。點選資料集檢視器右上角的 嵌入 按鈕

它將開啟一個模態框,其中包含您可以複製並貼上到網頁中的 iframe 程式碼

引數

資料集檢視器頁面的所有引數也可以透過將其新增到 iframe URL 來傳遞給嵌入式檢視器(過濾器、搜尋、特定分割等)。例如,要顯示 nyu-mll/glue 資料集 rte 子集的 test 分割中 mangrove 的搜尋結果,您可以使用以下 URL

<iframe
  src="https://huggingface.co/datasets/nyu-mll/glue/embed/viewer/rte/split?search=mangrove"
  frameborder="0"
  width="100%"
  height="560px"
></iframe>

您可以直接從資料集檢視器介面獲取此程式碼,方法是執行搜尋,然後單擊 按鈕,再單擊 嵌入

它將開啟一個模態框,其中包含您可以複製並貼上到網頁中的 iframe 程式碼

示例

嵌入式資料集檢視器已用於多種機器學習工具和平臺,以顯示資料集。以下是一些示例。

如果您想出現在本節中,請提交拉取請求

工具:ZenML

htahir1 分享了一篇部落格文章,展示瞭如何使用 ZenML 與資料集檢視器的整合,在 ZenML 管道中視覺化 Hugging Face 資料集。

工具:Metaflow + Outerbounds

eddie-OB演示影片中展示瞭如何在 Outerbounds 上的 Metaflow 卡片中包含資料集檢視器。

工具:AutoTrain

abhishek演示影片中展示了資料集檢視器如何整合到 AutoTrain 中。

資料集:Alpaca 風格資料集畫廊

davanstrien 在一個 space 中展示了 Alpaca 風格資料集集合

資料集:Docmatix

andito 在宣佈釋出 Docmatix(一個用於文件視覺問答 (DocVQA) 的大型資料集)的部落格文章中使用了嵌入式檢視器。

應用:電動汽車充電站查詢器

cfahlgren1電動汽車充電站查詢器應用嵌入了資料集檢視器。

應用:Masader - 阿拉伯語 NLP 資料目錄

ZaidMasader - 阿拉伯語 NLP 資料目錄0展示了資料集檢視器。

< > 在 GitHub 上更新

© . This site is unofficial and not affiliated with Hugging Face, Inc.