Shaltiel commited on
Commit
3afd812
โ€ข
1 Parent(s): 2c00e7a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -4
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
- segmented_sentence = model.predict([sentence], tokenizer)
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: