Views
No views yet
| Label | Meaning |
|---|---|
O | No punctuation |
, | Comma — pause within a clause |
. | Period — end of statement |
: | Colon — introduces speech or explanation |
; | Semicolon — separates related clauses |
? | Question mark |
! | Exclamation mark / rhetorical challenge |
— | Em-dash |
dicta-il/BEREL_3.0) — a BERT model pre-trained on historical Hebrew textspunctuator.py script from the
mivami project, which handles
the Al HaTorah markup encoding (nikud, abbreviation tags, daf markers, etc.).1# Download and install
2pip install torch transformers numpy scikit-learn
3
4# Apply to an Al HaTorah encoded text file
5python punctuator.py predict \
6 --input YourMasechet.txt \
7 --model-dir saved_model \
8 --output YourMasechet_predicted.txt{דף ב.}<abb>...</abb><openabb>...</openabb><EMNM>...</EMNM><b>, <h2>, <dots><openabb> content, drops <abb> content)