Update zero-shot-classification.html
Browse files
zero-shot-classification.html
CHANGED
|
@@ -6,8 +6,8 @@
|
|
| 6 |
<title>Zero Shot Classification - Hugging Face Transformers.js</title>
|
| 7 |
|
| 8 |
<script type="module">
|
| 9 |
-
//
|
| 10 |
-
|
| 11 |
|
| 12 |
// Make it available globally
|
| 13 |
window.pipeline = pipeline;
|
|
@@ -97,8 +97,10 @@
|
|
| 97 |
|
| 98 |
// Initialize the sentiment analysis model
|
| 99 |
async function initializeModel() {
|
| 100 |
-
|
| 101 |
-
|
|
|
|
|
|
|
| 102 |
|
| 103 |
}
|
| 104 |
|
|
|
|
| 6 |
<title>Zero Shot Classification - Hugging Face Transformers.js</title>
|
| 7 |
|
| 8 |
<script type="module">
|
| 9 |
+
// To-Do: transformers.js 라이브러리 중 pipeline 함수를 import하십시오.
|
| 10 |
+
|
| 11 |
|
| 12 |
// Make it available globally
|
| 13 |
window.pipeline = pipeline;
|
|
|
|
| 97 |
|
| 98 |
// Initialize the sentiment analysis model
|
| 99 |
async function initializeModel() {
|
| 100 |
+
// To-Do: pipeline 함수에 task와 model을 지정하여 zero 샷 분류 모델을 생성하여 classifier에 저장하십시오. 모델은 Xenova/mobilebert-uncased-mnli 사용
|
| 101 |
+
|
| 102 |
+
// To-Do: pipeline 함수에 task와 model을 지정하여 zero 샷 분류 모델을 생성하여 classifierMulti에 저장하십시오. 모델은 Xenova/nli-deberta-v3-xsmall 사용
|
| 103 |
+
|
| 104 |
|
| 105 |
}
|
| 106 |
|