{"id":13714414,"url":"https://github.com/banyh/PyStanfordNLP","last_synced_at":"2025-05-07T01:33:57.232Z","repository":{"id":101588064,"uuid":"79479878","full_name":"banyh/PyStanfordNLP","owner":"banyh","description":"A Python Wrapper of Stanford Chinese Segmenter","archived":false,"fork":false,"pushed_at":"2017-08-02T02:32:00.000Z","size":2014,"stargazers_count":20,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-05-23T04:46:49.474Z","etag":null,"topics":["nlp","postagging","python-wrapper","stanford","stanford-chinese-segmenter"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/banyh.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}},"created_at":"2017-01-19T17:59:25.000Z","updated_at":"2023-04-24T08:11:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc195dab-4ac7-4a41-8543-08f1051dca82","html_url":"https://github.com/banyh/PyStanfordNLP","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/banyh%2FPyStanfordNLP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/banyh%2FPyStanfordNLP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/banyh%2FPyStanfordNLP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/banyh%2FPyStanfordNLP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/banyh","download_url":"https://codeload.github.com/banyh/PyStanfordNLP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224551263,"owners_count":17330114,"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":["nlp","postagging","python-wrapper","stanford","stanford-chinese-segmenter"],"created_at":"2024-08-02T23:01:59.066Z","updated_at":"2024-11-14T01:31:11.528Z","avatar_url":"https://github.com/banyh.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# A Python Wrapper of Stanford Chinese Segmenter\n\n## Prerequisite\n\n* Java 8\n\n\n## Installation\n\n```\npip install git+https://github.com/banyh/PyStanfordNLP\n```\n\n\n## Usage\n\n```python\nfrom stanford_segmenter import Segmenter\nfrom stanford_postagger import Postagger\n\nseg = Segmenter()  # the only supported language is 'zh'\npos = Postagger()  # supported language: 'zh', 'en', 'fr', 'de', 'es'\n\nseg.segment('你昨天去電影院了嗎?')\n# ['你', '昨天', '去', '電影院', '了', '嗎', '?']\npos.postag('你 昨天 去 電影院 了 嗎 ?')\n# '你#PN 昨天#NT 去#VV 電影院#VV 了#AS 嗎#NN ？#PU '\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbanyh%2FPyStanfordNLP","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbanyh%2FPyStanfordNLP","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbanyh%2FPyStanfordNLP/lists"}