From d5fadb07f07dbb5d58283174b5dd0da1eec768d0 Mon Sep 17 00:00:00 2001 From: Kiyarash Fazeli Date: Tue, 11 Aug 2026 13:52:50 +0330 Subject: [PATCH] Update README.md --- README.md | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index acc2a6c..e7d94b5 100644 --- a/README.md +++ b/README.md @@ -29,13 +29,25 @@ pip install https://huggingface.co/Phazel/fa_core_news_sm/resolve/main/fa_core_n - **🔁 Reproducibility** – Checksummed, versioned builds from UD_Persian-PerDT – no black boxes. - **🔌 Native spaCy** – Drop-in replacement. `spacy.load()` works instantly with standard `Doc` objects. - + ## Results -From `spacy benchmark accuracy`, stored in `metrics/`. -| Package | Components | Licence | Score | Wheel | -| --- | --- | --- | --- | --- | -| `fa_dep_news_sm` | tok2vec, tagger, morphologizer, trainable_lemmatizer, parser | CC BY-SA 4.0 | LEMMA 97.91 | 7.5 MB | -| `fa_core_news_sm` | the above plus ner | CC BY-SA 4.0 | ENTS_F 71.87 | 13 MB | +`spacy-persian` delivers production‑ready Persian NLP that stands alongside Hazm—the most popular Persian toolkit—while bringing the full power of the spaCy ecosystem. + +| Metric | **`spacy-persian`**
`fa_core_news_sm` | **Hazm**
(Persian toolkit) | `en_core_web_sm`
(English reference) | +|--------|:---:|:---:|:---:| +| **POS Accuracy (UPOS)** | **96.24%** | ~95.69%¹ | 97.21%² | +| **Lemma Accuracy** | **97.91%** | 89.9%¹ | — | +| **Dependency LAS** | 85.15% | 85.6%¹ | 91.85%² | +| **NER F-score** | 71.87% | — | 83.80%² | +| **Package Size** | **13 MB** (syntax+NER)
**7.5 MB** (syntax-only) | ~7 MB | 12 MB | + +> **¹** Hazm scores from its official README +> **²** `en_core_web_sm` scores from spaCy's official model card + +> ⚠️ **Note on comparability:** These benchmarks come from *different evaluation sets, treebanks, and test splits*. + + | Metric | Score | Reference | | --- | --- | --- |