Buckets:

rtrm's picture
|
download
raw
25.4 kB
# အခန်း (၁၀) ဆိုင်ရာ မေးခွန်းများ[[end-of-chapter-quiz]]
<CourseFloatingBanner
chapter={10}
classNames="absolute z-10 right-0 top-0"
/>
ဒီအခန်းမှာ သင်ယူခဲ့တာတွေကို စစ်ဆေးကြည့်ရအောင်။
### ၁။ Argilla ကို ဘာအတွက် အသုံးပြုနိုင်သလဲ။
<Question
choices={[
{
text: "ွဲ့စည်းှုမရှိဲ့ data (unstructured data) ွေကို NLP tasks ွေအတကွဲ့စည်းှုှိဲ့ data (structured data) အဖြော်းို့။",
explain: "Dataset တစကို annotations ွေ ထည့်ြီး NLP tasks ွေအတကအသုံးြုို့ Argilla ကို အသုံးြုိုတယ်။",
correct: true
},
{
text: "dataset တစတညောကို့ public website တစကို scrap ို့။",
explain: "က Argilla ဲ့ feature တစမဟူး၊ မယ့် public website တစကို scrap ြီး Python SDK ကို အသုံးြုြီး annotations ွေအတကArgilla dataset တစအဖြော်းိုတယ်။"
},
{
text: "လကှိ dataset တစဲ့ အရညအသွေးကို ြှ့်တငို့။",
explain: "ယခငannotations ွေကို အကြံြုကွေအဖအသုံးြုြီး dataset တစဲ့ အရညအသွေးကို ြှ့်တငို့ ဆငိုတယ်။",
correct: true
},
{
text: "လကှိ dataset တစကို သင့်ကိုိုuse case အတကြော်းို့။",
explain: "လကှိ dataset တစကို သင့်ကိုိုuse case အတကြော်းို့ Argilla ှာ မတဲ့ ေး်းအမျိုးအစားွေကို အသုံးြုိုတယ်။",
correct: true
},
{
text: "သင့် model ကို train ို့။",
explain: "Argilla ှာ model တစကို ိုကိုကtrain ို့ မရပူး၊ မယ့် Argilla ှာ သငစည်းားဲ့ data ွေကို သင့်ကိုိုmodel ကို train ို့ အသုံးြုိုတယ်။",
},
{
text: "synthetic datasets ွေ ို့။",
explain: "synthetic datasets ွေ ို့ distilabel package ကို အသုံးြုိုြီး၊ ို့ောကားဲ့ data ွေကို လညစစေးြီး စည်းို့ Argilla ကို အသုံးြုိုတယ်။",
}
]}
/>
### ၂။ Argilla ဟာ Hugging Face Spaces မှာသာ Hugging Face Datasets နဲ့ အလုပ်လုပ်ပါတယ်။
<Question
choices={[
{
text: "သည်။",
explain: "Argilla ကို Docker ကို အသုံးြုြီး locally လည်း deploy ိုတယ်။ Hugging Face Datasets အပအဝငမညသည့် data အမျိုးအစားကိုမဆို upload ို့ Python SDK ကို အသုံးြုိုတယ်။"
},
{
text: "ှားသည်။",
explain: "Argilla ကို Docker ကို အသုံးြုြီး locally လည်း deploy ိုတယ်။ Hugging Face Datasets အပအဝငမညသည့် data အမျိုးအစားကိုမဆို upload ို့ Python SDK ကို အသုံးြုိုတယ်။",
correct: true
}
]}
/>
### ၃။ Python SDK ကို သင့် Argilla server နဲ့ ချိတ်ဆက်ဖို့ Hugging Face token တစ်ခု လိုအပ်ပါတယ်။
<Question
choices={[
{
text: "သည်။",
explain: "က သင့် Argilla Space က private ိုအပတယ်။",
},
{
text: "ှားသည်။",
explain: "သငpublic Argilla Space ကို အသုံးြုတယိုရငမဟDocker ဲ့ local deployment တယိုရငtoken တစမလိုအပူး။",
correct: true
}
]}
/>
### ၄။ Argilla မှာ **fields** တွေက ဘာလဲ။ fields တွေ ဘယ်လောက် အသုံးပြုနိုင်လဲ။
<Question
choices={[
{
text: "Fields ွေက ကျွော်ို့ annotation ဲ့ data ွေကို သပတယ်။ အခကအလကားုံးကို single field တစှာ စည်းားို့ ိုအပတယ်။",
explain: "ိုအပရငအခကအလကွေကို multiple fields ွေအဖွဲိုတယ်။"
},
{
text: "Fields ွေက ကျွော်ို့ annotation ဲ့ data ွေကို သပတယ်။ အခကအလကားုံးကို multiple fields ွေအဖွဲိုတယ်။",
explain: "တယ်။ သငannotation ဲ့ data အမျိုးအစားေါ် တညြီး multiple fields ွေဲ့ မတဲ့ fields အမျိုးအစားွေ (text, chat, image...) ကိုလည်း အသုံးြုိုတယ်။",
correct: true
},
{
text: "Fields ွေှာ records ွေဲ့ metadata ွေ ဝငတယ်။ သငိုအပသလောကအသုံးြုိုတယ်။",
explain: "သင့် dataset ှာ fields ွေဲ့ metadata ုံး ှိိုမယ့်၊ ၎်းို့က မတဲ့ ရညကွေအတကါ။ Metadata ွေက filtering ဲ့ sorting ို့အတကအပိုအခကအလကွေအဖအသုံးြုြီး၊ fields ွေက ကျွော်ို့ annotation ဲ့ data ွေကို သပတယ်။"
}
]}
/>
### ၅။ token classification task တစ်ခုအတွက် အကောင်းဆုံး မေးခွန်းအမျိုးအစားက ဘာလဲ။
<Question
choices={[
{
text: "A SpanQuestion",
explain: "SpanQuestions ွေက ားအပို်းအစတွေကို highlight ြီး label တစထည့့််ြုတယ်။ က token classification task တစအတကအကော်းုံး အမျိုးအစားါ။",
correct: true
},
{
text: "A LabelQuestion",
explain: "ေး်းအမျိုးအစားက record တစုံးဲ့ သကိုဲ့ label တစကို ွေး့်ြုတယ်။ က text classification task တစအတကအကော်းုံး အမျိုးအစားါ။"
},
{
text: "A TextQuestion",
explain: "ေး်းအမျိုးအစားက ားေးို့ ့်ြုတယ်။ က token classification task တစအတကမသင့်ော်ူး။"
},
{
text: "အထကအဖြေျား မဟါ။",
explain: "SpanQuestions ွေက ားအပို်းအစတွေကို highlight ြီး label တစထည့့််ြုတယ်။ က token classification task တစအတကအကော်းုံး အမျိုးအစားါ။"
}
]}
/>
### ၆။ "Save as draft" button ရဲ့ ရည်ရွယ်ချက်က ဘာလဲ။
<Question
choices={[
{
text: "သင့်ဲ့ အဖြေွေကို submit ို့။",
explain: "button က သင့်အဖြေွေကို save မယ့် submit ော့ မလူး။",
},
{
text: "သင့်ဲ့ အဖြေွေကို submit မလsave ို့။",
explain: "က Hugging Face Hub ကနHugging Face model တစကို load ို့ ကနဲ့ နည်းလမ်းတစါ။",
correct: true
},
{
text: "record တစကို ့်ပစို့။",
explain: "'demos' prefix ကို အသုံးြုြီး model တစကို load ို့ မရပူး။ ထပကြိုးားါ။"
}
]}
/>
### ၇။ Argilla က အကြံပြုထားတဲ့ labels တွေကို အလိုအလျောက် မပေးပါဘူး၊ သင်ကိုယ်တိုင် data တွေ ပေးရပါမယ်။
<Question
choices={[
{
text: "သည်။",
explain: "သင့် records ွေှာ (မဟဆငြီး) အကြံြုကွေကို project ဲ့ ဘယအချိှာမဆို ထည့်ိုတယ်။",
correct: true
},
{
text: "ှားသည်။",
explain: "အကြံြုားဲ့ labels ွေကို တယိုရင်၊ records ွေ ဖနီးဲ့အခမဟောကို်းအချိတစှာ သငကိုိုlog ို့ ိုအပတယ်။"
}
]}
/>
### ၈။ Argilla dataset တစ်ခုလုံးကို Hub သို့ export လုပ်ရန် လိုအပ်သော အဆင့်များအားလုံးကို ရွေးချယ်ပါ။
<Question
choices={[
{
text: "သင့် Argilla server ဲ့ ျိဆကို့ ိုအပတယ- <code>client= rg.Argilla(api_url='...', api_key='...')</code>",
explain: "မှန်ပါတယ်။ သင့် server နဲ့ အပြန်အလှန်လုပ်ဆောင်ဖို့ အရင်ဆုံး instantiate လုပ်ဖို့ လိုအပ်ပါတယ်။",
correct: true
},
{
text: "Hub ကနေ dataset ကို import လုပ်ဖို့- <code>dataset = rg.Dataset.from_hub(repo_id='argilla/ag_news_annotated')</code>",
explain: "မမှန်ပါဘူး။ ဒါက Hub ကနေ dataset တစ်ခုကို သင့် Argilla instance ထဲကို import လုပ်ဖို့ပါ။",
},
{
text: "dataset ကို load လုပ်ဖို့- <code>dataset = client.datasets(name='my_dataset')</code>",
explain: "မှန်ပါတယ်။ နောက်ထပ် operations တွေအတွက် ဒါက လိုအပ်ပါလိမ့်မယ်။",
correct: true
},
{
text: "Argilla dataset ကို Datasets dataset အဖြစ် ပြောင်းလဲဖို့- <code>dataset = dataset.to_datasets()</code>",
explain: "dataset တစ်ခုလုံးကို export လုပ်မယ်ဆိုရင် ဒါက မလိုအပ်ပါဘူး။ Argilla က သင့်အတွက် ဒါကို လုပ်ပေးပါလိမ့်မယ်။ ဒါပေမယ့် records အနည်းငယ်နဲ့ အလုပ်လုပ်နေတယ်ဆိုရင်တော့ လိုအပ်နိုင်ပါတယ်။"
},
{
text: "dataset ကို export လုပ်ဖို့ <code>to_hub</code> method ကို အသုံးပြုဖို့- <code>dataset.to_hub(repo_id='my_username/dataset_name')</code>",
explain: "ဒါက dataset ကို ဖော်ပြထားတဲ့ repo id ကို push လုပ်ပြီး၊ repo မရှိသေးရင် အသစ်တစ်ခု ဖန်တီးပါလိမ့်မယ်။",
correct: true
},
]}
/>
## ဝေါဟာရ ရှင်းလင်းချက် (Glossary)
* **Argilla**: Data annotation နှင့် curation အတွက် open-source platform တစ်ခုဖြစ်ပြီး Natural Language Processing (NLP) tasks များအတွက် အရည်အသွေးမြင့် datasets များ ဖန်တီးရာတွင် အထောက်အကူပြုသည်။
* **Unstructured Data**: သတ်မှတ်ထားသော ပုံစံ သို့မဟုတ် ဖွဲ့စည်းပုံမရှိသော ဒေတာများ (ဥပမာ- စာသားများ၊ ရုပ်ပုံများ)။
* **Structured Data**: သတ်မှတ်ထားသော ပုံစံ သို့မဟုတ် ဖွဲ့စည်းပုံဖြင့် စုစည်းထားသော ဒေတာများ (ဥပမာ- جداول د databases)။
* **NLP Tasks (Natural Language Processing Tasks)**: ကွန်ပျူတာတွေ လူသားဘာသာစကားကို နားလည်၊ အဓိပ္ပာယ်ဖော်ပြီး၊ ဖန်တီးနိုင်အောင် လုပ်ဆောင်ပေးတဲ့ အလုပ်တွေ (ဥပမာ- text classification, question answering)။
* **Scrap a Public Website**: အချက်အလက်များ စုဆောင်းရန်အတွက် အများပြည်သူသုံး ဝဘ်ဆိုဒ်တစ်ခုမှ ဒေတာများကို အလိုအလျောက် ထုတ်ယူခြင်း။
* **Python SDK (Software Development Kit)**: Python application များ တည်ဆောက်ရန်အတွက် ကိရိယာများနှင့် library များ စုစည်းမှု။
* **Annotations**: စာသား၊ ရုပ်ပုံ သို့မဟုတ် အခြားဒေတာများတွင် အဓိပ္ပာယ် သို့မဟုတ် labels များကို လူသားများက ထည့်သွင်းပေးခြင်း။
* **Dataset Quality**: dataset တစ်ခု၏ တိကျမှု၊ ပြည့်စုံမှု၊ ဆင်တူမှု နှင့် ယုံကြည်စိတ်ချရမှု အတိုင်းအတာ။
* **Use Case**: ထုတ်ကုန် သို့မဟုတ် စနစ်တစ်ခုကို သီးခြားအခြေအနေတစ်ခုတွင် မည်သို့အသုံးပြုသည်ကို ဖော်ပြခြင်း။
* **Distilabel Package**: Synthetic datasets များ ဖန်တီးရာတွင် ကူညီပေးသော package။
* **Synthetic Datasets**: လက်တွေ့ဒေတာများမဟုတ်ဘဲ AI model များကို လေ့ကျင့်ရန်အတွက် ဖန်တီးထားသော ဒေတာအစုအဝေးများ။
* **Review**: အချက်အလက်များ သို့မဟုတ် မှတ်တမ်းများကို သေချာစွာ စစ်ဆေးခြင်း။
* **Docker**: Applications များကို containers များအတွင်း ထုပ်ပိုးပြီး deploy လုပ်ရန် အသုံးပြုသော platform။
* **Locally Deploy**: Application တစ်ခုကို cloud server တွင် မဟုတ်ဘဲ မိမိကိုယ်ပိုင် ကွန်ပျူတာပေါ်တွင် တင်ပြီး အသုံးပြုခြင်း။
* **Hugging Face Spaces**: Hugging Face Hub ၏ အစိတ်အပိုင်းတစ်ခုဖြစ်ပြီး Gradio ကဲ့သို့သော library များကို အသုံးပြု၍ Machine Learning demos များကို host လုပ်ပြီး မျှဝေနိုင်သည်။
* **Hugging Face Datasets**: Hugging Face က ထုတ်လုပ်ထားတဲ့ library တစ်ခုဖြစ်ပြီး AI မော်ဒယ်တွေ လေ့ကျင့်ဖို့အတွက် ဒေတာအစုအဝေး (datasets) တွေကို လွယ်လွယ်ကူကူ ဝင်ရောက်ရယူ၊ စီမံခန့်ခွဲပြီး အသုံးပြုနိုင်စေပါတယ်။
* **Python SDK (Argilla)**: Argilla API နှင့် Python code မှတစ်ဆင့် အပြန်အလှန်ဆက်သွယ်နိုင်စေသော toolkit။
* **Hugging Face Token**: Hugging Face Hub တွင် အကောင့် authentication အတွက် အသုံးပြုသော ထူးခြားသည့် ကုဒ်။
* **Argilla Server**: Argilla application ကို host လုပ်ပြီး client များ၏ requests များကို ဖြေကြားပေးသော server။
* **Public Argilla Space**: Hugging Face Spaces ပေါ်တွင် လူတိုင်း ဝင်ရောက်ကြည့်ရှုနိုင်သော Argilla instance။
* **Local Deployment**: Docker ကို အသုံးပြု၍ မိမိကိုယ်ပိုင် ကွန်ပျူတာပေါ်တွင် Argilla ကို တင်ပြီး အသုံးပြုခြင်း။
* **Fields**: Argilla dataset အတွင်းရှိ data record တစ်ခုစီ၏ အဓိက အချက်အလက် ကဏ္ဍများ။ ၎င်းတို့သည် annotation လုပ်မည့် အကြောင်းအရာကို ပြသသည်။
* **Records**: Dataset အတွင်းရှိ တစ်ခုချင်းစီသော data entry များ။
* **Metadata**: data အကြောင်း အချက်အလက်များ (data about data)။ ၎င်းတို့ကို filtering နှင့် sorting အတွက် အသုံးပြုနိုင်သည်။
* **SpanQuestion**: Argilla တွင် အသုံးပြုသော မေးခွန်းအမျိုးအစားတစ်ခုဖြစ်ပြီး စာသားအပိုင်းအစများကို highlight လုပ်ပြီး label များကို သတ်မှတ်ရန် အသုံးပြုသည်။ Token classification အတွက် အသင့်တော်ဆုံးဖြစ်သည်။
* **Token Classification Task**: စာသား sequence တစ်ခုအတွင်းရှိ token တစ်ခုစီကို အမျိုးအစားခွဲခြားသတ်မှတ်ခြင်း လုပ်ငန်း (ဥပမာ- Named Entity Recognition)။
* **LabelQuestion**: Argilla တွင် အသုံးပြုသော မေးခွန်းအမျိုးအစားတစ်ခုဖြစ်ပြီး record တစ်ခုလုံးအတွက် label တစ်ခုကို ရွေးချယ်ရန် အသုံးပြုသည်။ Text classification အတွက် အသင့်တော်ဆုံးဖြစ်သည်။
* **Text Classification Task**: စာသားကို သတ်မှတ်ထားသော အမျိုးအစားများထဲသို့ ခွဲခြားသတ်မှတ်ခြင်းနှင့် သက်ဆိုင်သော ပြဿနာ။
* **TextQuestion**: Argilla တွင် အသုံးပြုသော မေးခွန်းအမျိုးအစားတစ်ခုဖြစ်ပြီး အသုံးပြုသူအား စာသားများ ရေးသားရန် ခွင့်ပြုသည်။
* **"Save as draft" Button**: Argilla UI တွင် annotation လုပ်ထားသော အဖြေများကို သိမ်းဆည်းထားရန် အသုံးပြုသော်လည်း ၎င်းတို့ကို submit လုပ်ခြင်းမရှိသေးပါ။
* **Submit Responses**: annotation လုပ်ထားသော အဖြေများကို အပြီးသတ်သိမ်းဆည်းပြီး server သို့ ပေးပို့ခြင်း။
* **Discard a Record**: dataset မှ record တစ်ခုကို ဖယ်ရှားခြင်း သို့မဟုတ် လျစ်လျူရှုခြင်း။
* **Suggested Labels**: AI model သို့မဟုတ် အခြားနည်းလမ်းများမှ ထုတ်ပေးသော ကြိုတင်ခန့်မှန်းထားသည့် labels များ။ ၎င်းတို့ကို annotation လုပ်သူများက အတည်ပြုခြင်း သို့မဟုတ် ပြင်ဆင်နိုင်သည်။
* **Log**: ဖြစ်ရပ်များ သို့မဟုတ် အချက်အလက်များကို မှတ်တမ်းတင်ခြင်း။
* **`rg.Argilla()`**: Argilla Python SDK မှ Argilla client object ကို instantiate လုပ်ရန် function။
* **`api_url`**: Argilla server ၏ URL။
* **`api_key`**: Argilla server သို့ authentication အတွက် အသုံးပြုသော API key။
* **Instantiate**: class တစ်ခုမှ object တစ်ခုကို ဖန်တီးခြင်း။
* **`rg.Dataset.from_hub()`**: Argilla Python SDK မှ Hugging Face Hub မှ dataset တစ်ခုကို Argilla instance ထဲသို့ import လုပ်ရန် function။
* **`repo_id`**: Hugging Face Hub ရှိ repository ၏ ID (ဥပမာ- `my_username/my_dataset`)။
* **`client.datasets()`**: Argilla client မှ Argilla server ပေါ်ရှိ dataset များကို ဝင်ရောက်ကြည့်ရှုရန် method။
* **`dataset.to_datasets()`**: Argilla dataset object ကို Hugging Face `Dataset` object အဖြစ် ပြောင်းလဲရန် method။
* **Subset of Records**: dataset တစ်ခုလုံးမှ ရွေးထုတ်ထားသော အချက်အလက် အနည်းငယ်။
* **`to_hub()` Method**: Argilla dataset ကို Hugging Face Hub သို့ export (push) လုပ်ရန် method။
* **`my_username/dataset_name`**: Hugging Face Hub တွင် dataset ကို upload လုပ်မည့် repository ၏ ID။
<EditOnGithub source="https://github.com/huggingface/course/blob/main/chapters/my/chapter10/7.mdx" />

Xet Storage Details

Size:
25.4 kB
·
Xet hash:
32de2ab7fa2eb94639d0dc8c7389c911183a4fc7c6ae7397202a80fb830144e2

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.