Update README.md
Browse files
README.md
CHANGED
@@ -20,10 +20,7 @@ model = AutoModel.from_pretrained('dicta-il/dictabert-seg', trust_remote_code=Tr
|
|
20 |
model.eval()
|
21 |
|
22 |
sentence = 'ืืฉื ืช 1948 ืืฉืืื ืืคืจืื ืงืืฉืื ืืช ืืืืืืื ืืคืืกืื ืืชืืช ืืืชืืืืืช ืืืื ืืช ืืืื ืืคืจืกื ืืืืจืื ืืืืืจืืกืืืื'
|
23 |
-
|
24 |
-
|
25 |
-
import json
|
26 |
-
print(json.dumps(segmented_sentence, indent=2))
|
27 |
```
|
28 |
|
29 |
Output:
|
|
|
20 |
model.eval()
|
21 |
|
22 |
sentence = 'ืืฉื ืช 1948 ืืฉืืื ืืคืจืื ืงืืฉืื ืืช ืืืืืืื ืืคืืกืื ืืชืืช ืืืชืืืืืช ืืืื ืืช ืืืื ืืคืจืกื ืืืืจืื ืืืืืจืืกืืืื'
|
23 |
+
print(model.predict([sentence], tokenizer))
|
|
|
|
|
|
|
24 |
```
|
25 |
|
26 |
Output:
|