Token Classification
Transformers
Safetensors
Japanese
bert
japanese
koyobun
orthography
kanji-kana
government-writing
Eval Results (legacy)
Instructions to use NagaYu/scribe-usage-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NagaYu/scribe-usage-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="NagaYu/scribe-usage-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("NagaYu/scribe-usage-classifier") model = AutoModelForTokenClassification.from_pretrained("NagaYu/scribe-usage-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -32,11 +32,13 @@ model-index:
|
|
| 32 |
value: 0.800
|
| 33 |
---
|
| 34 |
|
| 35 |
-
# scribe-usage-classifier
|
| 36 |
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
the
|
|
|
|
|
|
|
| 40 |
|
| 41 |
- Part of the **Scribe** project · 💻 [GitHub](https://github.com/NagaYu/scribe-koyobun) ·
|
| 42 |
🤗 [Space](https://huggingface.co/spaces/NagaYu/scribe-koyobun) · 📚 [Dataset](https://huggingface.co/datasets/NagaYu/scribe-koyobun-usage)
|
|
|
|
| 32 |
value: 0.800
|
| 33 |
---
|
| 34 |
|
| 35 |
+
## scribe-usage-classifier
|
| 36 |
|
| 37 |
+
The model layer of [**Scribe**](https://github.com/NagaYu/scribe-koyobun), a context-aware kanji/kana checker for Japanese official documents.
|
| 38 |
+
|
| 39 |
+
Official-writing norms require the *same word* to be written differently depending on its syntactic role — a formal noun こと in kana, the substantive 事 in kanji. Uniform dictionary replacement collapses each word to one spelling and is structurally forced to get the other usage wrong. This model judges each occurrence of a monitored word fromits context and decides **kana or kanji**; the Scribe pipeline then attaches the normative clause as the rationale. A dictionary or regex cannot make this call, because the input surface may itself be the error.
|
| 40 |
+
|
| 41 |
+
Measured span accuracy on the held-out test split (split by document): **0.818** overall, **0.800** on the hard set of words that appear in both usages. Prooff-of-concept scale: finetuned on a small synthetic corpus (CC0), so read these as evidence the distinction is learnable from context — not as production accuracy on natural text. Full project, benchmarks against uniform replacement (prh) and a jōyō-kanji checker, and usage: https://github.com/NagaYu/scribekoyobun
|
| 42 |
|
| 43 |
- Part of the **Scribe** project · 💻 [GitHub](https://github.com/NagaYu/scribe-koyobun) ·
|
| 44 |
🤗 [Space](https://huggingface.co/spaces/NagaYu/scribe-koyobun) · 📚 [Dataset](https://huggingface.co/datasets/NagaYu/scribe-koyobun-usage)
|