thanakritbright
commited on
Commit
•
727fc9c
1
Parent(s):
b152b66
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: unknown
|
3 |
+
task_categories:
|
4 |
+
- text-classification
|
5 |
+
language:
|
6 |
+
- th
|
7 |
+
tags:
|
8 |
+
- code
|
9 |
+
size_categories:
|
10 |
+
- 1K<n<10K
|
11 |
+
---
|
12 |
+
from transformers import pipeline
|
13 |
+
|
14 |
+
# สร้างตัวดำเนินการสำหรับการจำแนกประเภทข้อความ
|
15 |
+
classifier = pipeline("text-classification")
|
16 |
+
|
17 |
+
# ทำนายประเภทข้อความ
|
18 |
+
result = classifier("This is a text to classify")
|
19 |
+
|
20 |
+
print(result)
|