shamaayan commited on
Commit
cdc69bb
โ€ข
1 Parent(s): 3b7b909

test pipeline

Browse files
Files changed (1) hide show
  1. test.py +11 -0
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]))