{"id":21271199,"url":"https://github.com/rikeda71/morphanalysisapi","last_synced_at":"2026-06-16T16:31:54.903Z","repository":{"id":83965479,"uuid":"193835570","full_name":"rikeda71/MorphAnalysisAPI","owner":"rikeda71","description":"Japanese Morph Analysis Web API","archived":false,"fork":false,"pushed_at":"2019-08-05T08:32:43.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T23:41:28.959Z","etag":null,"topics":["morphological-analysis"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/rikeda71.png","metadata":{"files":{"readme":"README.ja.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,"governance":null}},"created_at":"2019-06-26T05:30:39.000Z","updated_at":"2019-08-05T08:32:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"5bfb624c-7565-4929-b83e-1720219f9f15","html_url":"https://github.com/rikeda71/MorphAnalysisAPI","commit_stats":null,"previous_names":["rikeda71/morphanalysisapi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rikeda71/MorphAnalysisAPI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikeda71%2FMorphAnalysisAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikeda71%2FMorphAnalysisAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikeda71%2FMorphAnalysisAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikeda71%2FMorphAnalysisAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rikeda71","download_url":"https://codeload.github.com/rikeda71/MorphAnalysisAPI/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikeda71%2FMorphAnalysisAPI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34415240,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"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":["morphological-analysis"],"created_at":"2024-11-21T08:21:11.995Z","updated_at":"2026-06-16T16:31:54.886Z","avatar_url":"https://github.com/rikeda71.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MorphAnalysisAPI\n\n以下の3つの形態素解析機をWebAPIで試せるようにしたもの\n\n- [MeCab](https://taku910.github.io/mecab/)\n  - mecab with [NEologd](https://github.com/neologd/mecab-ipadic-neologd)\n- [JUMAN++](http://nlp.ist.i.kyoto-u.ac.jp/index.php?JUMAN++)\n- [Sudachi](https://github.com/WorksApplications/SudachiPy) (SudachiPy)\n\n## 必要なもの\n\n- python3\n  - requests\n- Docker\n\n## 使い方\n\n### Docker Containerの起動\n\n```shell\ndocker build . -t morph-analysis-api # wait a minute\ndocker run -it --rm -d -p 5000:5000 -v $PWD/:/app morph-analysis-api:latest python app.py\n```\n\n### Docker Containerの停止（削除）\n\n```shell\ndocker stop `container_id`\n```\n\n### 形態素解析のテスト\n\n```shell\npython3 request.py\n```\n\n#### テスト用スクリプトの詳細\n\n```shell\npython3 request.py -h\nusage: request.py [-h] [-s SENTENCE]\n                  [-m {mecab,mecab-neologd,sudachi,jumanpp}]\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -s SENTENCE, --sentence SENTENCE\n                        a japanese sentence. default=`すもももももももものうち`\n  -m {mecab,mecab-neologd,sudachi,jumanpp}, --machine {mecab,mecab-neologd,sudachi,jumanpp}\n                        choice morphological analysis machine. default=`mecab`\n```\n\n### APIの仕様\n\n| HTTP method | end point | request parameters | request headers |\n---- | ---- | ---- | ----\n| POST | /mecab | sentence | Content-Type:application/json |\n| POST | /mecab-neologd | sentence | Content-Type:application/json |\n| POST | /jumanpp | sentence | Content-Type:application/json |\n| POST | /sudachi | sentence, mode [optional. 'A', 'B', or 'C'] | Content-Type:application/json |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frikeda71%2Fmorphanalysisapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frikeda71%2Fmorphanalysisapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frikeda71%2Fmorphanalysisapi/lists"}