{"id":22054369,"url":"https://github.com/pymorphy2-fork/morphrs-py","last_synced_at":"2025-04-07T22:16:32.434Z","repository":{"id":251653705,"uuid":"838039134","full_name":"pymorphy2-fork/morphrs-py","owner":"pymorphy2-fork","description":"Experimental morph-rs bindings for Python.","archived":false,"fork":false,"pushed_at":"2025-04-04T05:36:42.000Z","size":37,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T06:27:23.551Z","etag":null,"topics":["morphological-analysis","nlp"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pymorphy2-fork.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-04T18:59:40.000Z","updated_at":"2025-04-04T05:36:41.000Z","dependencies_parsed_at":"2024-11-30T15:53:17.702Z","dependency_job_id":null,"html_url":"https://github.com/pymorphy2-fork/morphrs-py","commit_stats":null,"previous_names":["insolor/morphrs-py","pymorphy2-fork/morphrs-py"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pymorphy2-fork%2Fmorphrs-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pymorphy2-fork%2Fmorphrs-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pymorphy2-fork%2Fmorphrs-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pymorphy2-fork%2Fmorphrs-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pymorphy2-fork","download_url":"https://codeload.github.com/pymorphy2-fork/morphrs-py/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247737782,"owners_count":20987721,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["morphological-analysis","nlp"],"created_at":"2024-11-30T15:41:14.096Z","updated_at":"2025-04-07T22:16:32.413Z","avatar_url":"https://github.com/pymorphy2-fork.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# morphrs-py\n\nExperimental [morph-rs](https://github.com/kribrum-os/morph-rs) bindings for Python.\n\nDemonstration: [test.ipynb](test.ipynb)\n\nCurrent workflow:\n\n1. Install rust, python (3.8 shoud be supported, tested on 3.10)\n2. Create a virtual environment: `python -m venv .venv`\n3. Activate the virtual environment: `source .venv/bin/activate`\n4. Install dependencies: `pip install -r dev_requirements.txt`\n5. Build and install morphrs-py: `maturin develop`\n6. Download the dictionary from morph-rs releases:\n\n```bash\nwget --quiet https://github.com/kribrum-os/morph-rs/releases/download/v0.2.0/dict.zip \u0026\u0026 unzip dict.zip -d dict\n```\n\nNow you can use `morphrs_py` from python:\n\n```python\nfrom morphrs_py import MorphAnalyzer\n\nanalyzer = MorphAnalyzer.open(\"dict/\")\nsteel = morph_analyzer.parse_word(\"стали\")\nprint(steel)\n```\n\nAlso, you can run the `test.ipynb` using jupyter notebook:\n\n```bash\njupyter notebook test.ipynb\n```\n\n## License\n\nThe code of this project is licensed under the [Apache License 2.0](https://github.com/insolor/morphrs-py/blob/main/LICENSE).\n\nThe code of [morph-rs](https://github.com/kribrum-os/morph-rs/) is licensed under the [Kribrum-NC](https://github.com/kribrum-os/morph-rs/blob/main/license.md) (Apache License 2.0 based) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpymorphy2-fork%2Fmorphrs-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpymorphy2-fork%2Fmorphrs-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpymorphy2-fork%2Fmorphrs-py/lists"}