Skip to content

Add ruMorph to the spaCy Universe - #14056

Open
SergeyShk wants to merge 1 commit into
explosion:masterfrom
SergeyShk:universe-rumorph
Open

SergeyShk wants to merge 1 commit into
explosion:masterfrom
SergeyShk:universe-rumorph

Conversation

@SergeyShk

Copy link
Copy Markdown
Contributor

Description

Added ruMorph to the spaCy Universe.

ruMorph is a Russian morphological analyzer with a Rust core and a Python API. Its spaCy component (pip install "rumorph[spacy]", then nlp.add_pipe("rumorph")) replaces the tagger, morphologizer and lemmatizer: it analyzes each sentence with a context model and sets token.pos_, token.morph and token.lemma_ in Universal Dependencies conventions. With ru_core_news_sm, the share of words with the right part of speech, lemma and features on the UD SynTagRus test set goes from 82.0% to 93.7%, and the pipeline gets faster. Docs: https://sergeyshk.github.io/ruMorph/en/spacy/

Types of change

An enhancement to the spaCy Universe: a new entry in website/meta/universe.json.

Checklist

  • I confirm that I have the right to submit this contribution under the project's MIT license.
  • I ran the tests, and all new and existing tests passed.
  • My changes don't require a change to the documentation, or if they do, I've added all required information.

@SergeyShk

Copy link
Copy Markdown
Contributor Author

The Validate check fails before validation runs: actions/setup-python can't install Python 3.7 on ubuntu-latest (Ubuntu 24.04), the same failure as on master since 2025-10-28. python .github/validate_universe_json.py website/meta/universe.json passes locally on this branch. Bumping python-version in .github/workflows/universe_validation.yml would fix the workflow - happy to add it to this PR if you'd like

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant