{"id":24707800,"url":"https://github.com/anti-social/jmorphy2","last_synced_at":"2025-10-09T09:31:38.101Z","repository":{"id":6180246,"uuid":"7410462","full_name":"anti-social/jmorphy2","owner":"anti-social","description":"Java port of the pymorphy2","archived":false,"fork":false,"pushed_at":"2022-09-05T15:37:24.000Z","size":650,"stargazers_count":44,"open_issues_count":3,"forks_count":22,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-02T23:34:12.271Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anti-social.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-02T17:28:23.000Z","updated_at":"2025-01-04T10:30:19.000Z","dependencies_parsed_at":"2023-01-11T16:57:37.678Z","dependency_job_id":null,"html_url":"https://github.com/anti-social/jmorphy2","commit_stats":null,"previous_names":[],"tags_count":43,"template":false,"template_full_name":null,"purl":"pkg:github/anti-social/jmorphy2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anti-social%2Fjmorphy2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anti-social%2Fjmorphy2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anti-social%2Fjmorphy2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anti-social%2Fjmorphy2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anti-social","download_url":"https://codeload.github.com/anti-social/jmorphy2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anti-social%2Fjmorphy2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001135,"owners_count":26083022,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-01-27T06:19:03.911Z","updated_at":"2025-10-09T09:31:37.534Z","avatar_url":"https://github.com/anti-social.png","language":"Java","funding_links":[],"categories":["人工智能"],"sub_categories":["自然语言处理"],"readme":"![Java CI](https://github.com/anti-social/jmorphy2/workflows/Java%20CI/badge.svg)\n[![Appveyor status](https://ci.appveyor.com/api/projects/status/x9df34q1er8r5kc0/branch/master?svg=true)](https://ci.appveyor.com/project/anti-social/jmorphy2/branch/master)\n\n# Jmorphy2\n\nJava port of the [pymorphy2](https://github.com/kmike/pymorphy2)\n\nClone project:\n\n```sh\ngit clone https://github.com/anti-social/jmorphy2\ncd jmorphy2\n```\n\nCompile project, build jars and run tests:\n\n```\n./gradlew build\n```\n\n## Elasticsearch plugin\n\n### Plugin installation\n\n- From a debian package:\n\n```shell\ncurl -SLO https://github.com/anti-social/jmorphy2/releases/download/v0.2.3-es7.14.2/elasticsearch-analysis-jmorphy2-plugin_0.2.3-es7.14.2_all.deb\ndpkg -i elasticsearch-analysis-jmorphy2-plugin_0.2.3-es7.14.2_all.deb\n```\n\n- Using `elasticsearch-plugin` command:\n```shell\n# Specify correct path of your Elasticsearch installation\nexport es_home=/usr/share/elasticsearch\n${es_home}/bin/elasticsearch-plugin install \"https://github.com/anti-social/jmorphy2/releases/download/v0.2.3-es7.14.2/analysis-jmorphy2-0.2.3-es7.14.2.zip\"\n```\n\n### Building plugin\n\nDefault elasticsearch version against which plugin is built is `7.14.2`\n\nTo build for specific elastisearch version run build as:\n\n```shell\n./gradlew assemble -PesVersion=7.13.4\n```\n\nSupported elasticsearch versions: `6.6.x`, `6.7.x`, `6.8.x`, `7.0.x`, `7.1.x`, `7.2.x`, `7.3.x`, `7.4.x`, `7.5.x`, `7.6.x`, `7.7.x`, `7.8.x`, `7.9.x`, `7.10.x`, `7.11.x`, `7.12.x`, `7.13.x`, `7.14.x`\n\nFor older elasticsearch version use specific branches:\n\n- `es-5.4` for Elasticsearch `5.4.x`, `5.5.x` and `5.6.x`\n- `es-5.1` for Elasticsearch `5.1.x`, `5.2.x` and `5.3.x`\n\nAnd install assembled plugin:\n\n```shell\n# Specify correct path of your Elasticsearch installation\nexport es_home=/usr/share/elasticsearch\nsudo ${es_home}/bin/elasticsearch-plugin install file:jmorphy2-elasticsearch/build/distributions/analysis-jmorphy2-0.2.2-SNAPSHOT-es7.13.2.zip\n```\n\nOr just run elasticsearch inside the container \n(only works for plugin built for default Elasticsearch version):\n\n```shell\n# build container and run elasticsearch with jmorphy2 plugin\nvagga elastic\n```\n\nUsing podman or docker:\n\n```shell\npodman build -t elasticsearch-jmorphy2 -f Dockerfile.elasticsearch .github\npodman run --name elasticsearch-jmorphy2 -p 9200:9200 -e \"ES_JAVA_OPTS=-Xmx1g\" -e \"discovery.type=single-node\" elasticsearch-jmorphy2\n```\n\n### Test elasticsearch with jmorphy2 plugin\n\nCreate index with specific analyzer and test it:\n\n\n```shell\ncurl -X PUT -H 'Content-Type: application/yaml' 'localhost:9200/test_index' -d '---\nsettings:\n  index:\n    analysis:\n      filter:\n        delimiter:\n          type: word_delimiter\n          preserve_original: true\n        jmorphy2_russian:\n          type: jmorphy2_stemmer\n          name: ru\n        jmorphy2_ukrainian:\n          type: jmorphy2_stemmer\n          name: uk\n      analyzer:\n        text_ru:\n          tokenizer: standard\n          filter:\n          - delimiter\n          - lowercase\n          - jmorphy2_russian\n        text_uk:\n          tokenizer: standard\n          filter:\n          - delimiter\n          - lowercase\n          - jmorphy2_ukrainian\n'\n\n# Test russian analyzer\ncurl -X GET -H 'Content-Type: application/yaml' 'localhost:9200/test_index/_analyze' -d '---\nanalyzer: text_ru\ntext: Привет, лошарики!\n'\ncurl -X GET -H 'Content-Type: application/yaml' 'localhost:9200/test_index/_analyze' -d '---\nanalyzer: text_ru\ntext: ёж еж ежики\n'\ncurl -X GET -H 'Content-Type: application/yaml' 'localhost:9200/test_index/_analyze' -d '---\nanalyzer: text_ru\ntext: путин\n'\n\n# Test ukrainian analyzer\ncurl -X GET -H 'Content-Type: application/yaml' 'localhost:9200/test_index/_analyze' -d '---\nanalyzer: text_uk\ntext: Пригоди Котигорошка\n'\ncurl -X GET -H 'Content-Type: application/yaml' 'localhost:9200/test_index/_analyze' -d '---\nanalyzer: text_uk\ntext: їжаки\n'\ncurl -X GET -H 'Content-Type: application/yaml' 'localhost:9200/test_index/_analyze' -d '---\nanalyzer: text_uk\ntext: комп\\'ютером\n'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanti-social%2Fjmorphy2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanti-social%2Fjmorphy2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanti-social%2Fjmorphy2/lists"}