{"id":21433336,"url":"https://github.com/guokr/stan-cn-nlp","last_synced_at":"2025-07-14T13:30:58.521Z","repository":{"id":57724781,"uuid":"6897855","full_name":"guokr/stan-cn-nlp","owner":"guokr","description":"stan-cn-nlp: an API wrapper based on Stanford NLP packages for the convenience of Chinese users","archived":false,"fork":false,"pushed_at":"2016-10-23T10:27:20.000Z","size":172575,"stargazers_count":57,"open_issues_count":0,"forks_count":14,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-04-15T12:10:55.678Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/guokr.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}},"created_at":"2012-11-28T07:10:12.000Z","updated_at":"2023-08-01T10:29:16.000Z","dependencies_parsed_at":"2022-09-11T04:52:31.085Z","dependency_job_id":null,"html_url":"https://github.com/guokr/stan-cn-nlp","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guokr%2Fstan-cn-nlp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guokr%2Fstan-cn-nlp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guokr%2Fstan-cn-nlp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guokr%2Fstan-cn-nlp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guokr","download_url":"https://codeload.github.com/guokr/stan-cn-nlp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225980906,"owners_count":17554919,"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":[],"created_at":"2024-11-22T23:27:27.347Z","updated_at":"2024-11-22T23:27:28.686Z","avatar_url":"https://github.com/guokr.png","language":"Java","funding_links":[],"categories":["人工智能"],"sub_categories":["自然语言处理"],"readme":"stan-cn-nlp\n============\n\nAn API wrapper based on Stanford NLP packages for the convenience of Chinese\nusers. This package is based on stan-cn-* family:\n\n* stan-cn-com: Common code base\n* stan-cn-seg: Chinese segmentation and related data model\n* stan-cn-ner: Named entity recognition and related data model\n* stan-cn-tag: POS tagging and related data model\n\nThis package bundled seg, ner and tagging together. So if you only need one of\nthem, you can use stan-cn-seg, stan-cn-ner, stan-cn-tag separately.\n\nPurpose of the packages\n------------------------\n\nThe original Stanford CoreNLP packages with default language settings in Maven\ncentral is only for English. If you are dealing with simplified Chinese, you\nstill need to download the Chinese model and fix some configuration files.\n\nThe burden is not too much, but if you deploy these packages to a server\ncluster, this burden might be amplified.\n\nWhatever you face a single node or a server farm, it would be a pleasurable\nsolution to provide packages with default settings of Chinese language\nmodels. That is what we do.\n\nComments, reviews, bug reports and patches are welcomed.\n\nCurrent version\n----------------\n\nCurrent version is 0.0.4 and based on Stanford CoreNLP 3.2.0 with minor fixes.\n\nincluding below dependency:\n\n* maven:\n```xml\n    \u003cdependency\u003e\n        \u003cgroupId\u003ecom.guokr\u003c/groupId\u003e\n        \u003cartifactId\u003estan-cn-nlp\u003c/artifactId\u003e\n        \u003cversion\u003e0.0.4\u003c/version\u003e\n    \u003c/dependency\u003e\n```\n* leiningen:\n```clojure\n    [com.guokr/stan-cn-nlp \"0.0.4\"]\n```\n* sbt:\n```scala\n    libraryDependencies += \"com.guokr\" % \"stan-cn-nlp\" % \"0.0.4\"\n```\n\nSimplified API\n---------------\n\nWe use a very simple API to reduce the complexity.\n\n```java\n    new SegWrapper(settings).segment(text);\n    new NerWrapper(settings).recognize(text);\n    new TagWrapper(settings).tag(text);\n```\n\nOr if you want to use the default language models, just use\n\n```java\n    __PKG__.INSTANCE.segment(text);\n    __PKG__.INSTANCE.recognize(text);\n    __PKG__.INSTANCE.tag(text);\n```\n\nThe command line tool\n----------------------\n\nPlease follow below steps to play with:\n\n* git clone git://github.com/guokr/stan-cn-nlp.git\n* cd stan-cn-nlp\n* mvn package\n* java -Xms1g -Xmx2g -jar target/stan-cn-nlp-0.0.5-SNAPSHOT-standalone.jar seg \"大江东去浪淘尽\"\n* java -Xms1g -Xmx2g -jar target/stan-cn-nlp-0.0.5-SNAPSHOT-standalone.jar ner \"大江东去浪淘尽\"\n* java -Xms1g -Xmx2g -jar target/stan-cn-nlp-0.0.5-SNAPSHOT-standalone.jar tag \"大江东去浪淘尽\"\n\nPreparation for release\n------------------------\n\nBefore release this package to maven central, please execute below commands:\n\n* mvn clean source:jar javadoc:jar package\n* export MAVEN_OPTS=-Xmx2048m\n* mvn release:clean\n* mvn release:prepare\n* mvn release:perform\n\nAuthors\n--------\n\n* Mingli Yuan ( https://github.com/mountain )\n* Rui Wang ( https://github.com/isnowfy )\n* Wanjian Wu ( https://github.com/jseagull )\n\nLicense\n--------\n\nGPLv2, just same as the license of Stanford CoreNLP package\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguokr%2Fstan-cn-nlp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguokr%2Fstan-cn-nlp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguokr%2Fstan-cn-nlp/lists"}