test pipeline
Browse files
test.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from transformers import pipeline
|
2 |
+
|
3 |
+
|
4 |
+
pipe = pipeline(
|
5 |
+
task="hive-token-classification",
|
6 |
+
model="Hiveurban/dictabert-large-parse",
|
7 |
+
trust_remote_code=True,
|
8 |
+
)
|
9 |
+
|
10 |
+
sentence = 'ืืฉื ืช 1948 ืืฉืืื ืืคืจืื ืงืืฉืื ืืช ืืืืืืื ืืคืืกืื ืืชืืช ืืืชืืืืืช ืืืื ืืช ืืืื ืืคืจืกื ืืืืจืื ืืืืืจืืกืืืื'
|
11 |
+
print(pipe([sentence]))
|