model card: shoshan 0.4.1, and the 512-token input window
Browse files
README.md
CHANGED
|
@@ -49,6 +49,18 @@ lz = Lemmatizer.from_pretrained() # pulls these weights, then caches
|
|
| 49 |
lz.lemma("המחברות", "המורה חילקה את המחברות לתלמידים בכיתה.") # -> מחברת
|
| 50 |
```
|
| 51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
## `shoshan` 0.4.0 — update the software, not the weights
|
| 53 |
|
| 54 |
**These weights are unchanged**; nothing here needs re-downloading. 0.4.0 fixes the text
|
|
|
|
| 49 |
lz.lemma("המחברות", "המורה חילקה את המחברות לתלמידים בכיתה.") # -> מחברת
|
| 50 |
```
|
| 51 |
|
| 52 |
+
The input unit is one sentence of up to 512 subword tokens, about 370 Hebrew words. A word
|
| 53 |
+
past that point cannot be lemmatized and is returned with `source="truncated"`; split longer
|
| 54 |
+
text into sentences first (`lemmatize_text` does this on sentence punctuation).
|
| 55 |
+
|
| 56 |
+
## `shoshan` 0.4.1 — long sentences
|
| 57 |
+
|
| 58 |
+
Weights unchanged. The software read at most 160 subword tokens of a sentence and, for any
|
| 59 |
+
word past that point, ran the heads on the sentence-start vector, which reads as PART; with
|
| 60 |
+
`blank_function_words=True` those words were dropped. The window is now the encoder's limit
|
| 61 |
+
of 512 tokens, and a word past it is reported as `source="truncated"` with its surface form
|
| 62 |
+
as the lemma. Changelog: <https://github.com/ivrit/shoshan/releases/tag/v0.4.1>
|
| 63 |
+
|
| 64 |
## `shoshan` 0.4.0 — update the software, not the weights
|
| 65 |
|
| 66 |
**These weights are unchanged**; nothing here needs re-downloading. 0.4.0 fixes the text
|