{ "info": { "author": "cltian", "author_email": "cl.tian@live.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Natural Language :: Chinese (Simplified)", "Operating System :: OS Independent", "Programming Language :: Python :: 3.7", "Topic :: Scientific/Engineering :: Artificial Intelligence" ], "description": "# short_chn_yn\n\u4f7f\u7528\u903b\u8f91\u7684\u77ed\u6587\u672c\u4e2d\u6587\u5b57\u9762\u80af\u5b9a\u5426\u5b9a\u8bc6\u522b\u3002\n\n### 1.\u76ee\u7684\n\n1. \u4e2d\u6587\u662f\u7531\u5b57\u7ec4\u6210\u7684\uff0c\u4e00\u822c\u4eba\u7684\u8bed\u901f\u5927\u6982\u4e3a[200\u5b57/\u5206\u949f](https://dwz.cn/V7nIMYzq)\uff0c\u5982\u679c\u4ea4\u6d41\u65f6\u95f4\u5f88\u77ed\uff081~2s\uff09\uff0c\u5219\u8f93\u51fa\u6c49\u5b57\u4e3a3~7\u5b57;\n\n2. \u65e5\u5e38\u4ea4\u6d41\u4e2d\u6700\u5e38\u89c1\u662f\u5b57\u9762\uff08\u4e0d\u9700\u8981\u592a\u590d\u6742\u8bed\u4e49\uff09\u80af\u5b9a\u548c\u5426\u5b9a\n\n\u7efc\u4e0a\uff0c\u65e5\u5e38\u4ea4\u6d41\u4e2d\u6700\u5e38\u89c1\u7684\u662f3~7\u5b57\u7684\u5b57\u9762\u80af\u5426\u5b9a\uff0c\u4f8b\u5982\u201c\u55ef\uff0c\u662f\u7684\u201d\uff0c\u201c\u4e0d\u662f\u554a\u201d\u3002\u6211\u4eec\u4e3b\u8981\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002\n\n### 2.\u5efa\u6a21\n\n\u5b8c\u5168\u901a\u8fc7\u903b\u8f91\u8fd0\u7b97\u7684\u65b9\u5f0f\u5b9e\u73b0\uff1a\n\n`Yes-or-No=Not(Xor(yes,no))`\n\n\u4f8b\u5982\uff0c\u201c\u4e0d\u662f\u554a\u201c\uff0c\u201c\u4e0d\u201d\u8868\u793aFalse\uff0c\u201c\u662f\u201d\u8868\u793aTrue\uff0c\u201c\u554a\u201d\u662f\u65e0\u610f\u4e49\u8bcd\uff0c\u5ffd\u7565\uff0c\u5219`Not(Xor(True,False))=False=No`\uff0c\u6545\u8868\u793a\u5426\u5b9a\u3002\n\n\u5bf9\u4e8e\u66f4\u590d\u6742\u7684\u60c5\u51b5\uff0c\u201c\u96be\u9053\u4e0d\u662f\u5417\u201d\uff0c\u8fdb\u884c\u9012\u5f52\uff0c`Not(Xor(Not(Xor(False, False)), True))=True=Yes`\uff0c\u8868\u793a\u80af\u5b9a\u3002\n\n\n### 3.\u4f7f\u7528\n\n```python\nimport short-chn-yn as yn\nif __name__==\"__main__\":\n #\u5b9e\u4f8b\u5316\u5bf9\u8c61\n y1=yn.yn()\n s = \"\u55ef\u662f\"\n #\u8f93\u5165\n result = y1.y_n(s)\n print(result)\n```\n\n\u5176\u4e2d\u7684`simple_dict.txt`\u542b\u6709\uff1a`pos, neg, others, filter`\u56db\u4e2a\u5185\u5bb9\uff0c\u5206\u522b\u8868\u793a\uff1a\u80af\u5b9a\u3001\u5426\u5b9a\u3001\u65e0\u610f\u4e49\u8bcd\u548c\u7279\u6b8a\u5904\u7406\u8bcd(\u89e3\u51b3\u95ee\u98982)\uff0c\u7528\u6237\u53ef\u81ea\u884c\u4fee\u6539\u3002\n\n`yn(dictionary)`\uff0c\u6784\u9020\u51fd\u6570\uff0c\u53ef\u4ee5\u7528\u7b26\u5408\u6807\u51c6\u7684\u5b57\u5178\uff0c\u7a7a\u7f3a\u4f7f\u7528\u9ed8\u8ba4\u5b57\u5178\u3002\n\n`y_n(s, thre)`\uff0c\u8f93\u51fa\u5224\u65ad\uff0c\u5176\u4e2d`s`\u4e3a\u8f93\u5165\u5b57\u7b26\u4e32\uff0c`thre`\u4e3a\u9608\u503c\uff0c\u56e0\u4e3a\u8bed\u901f\u662f\u5927\u90e8\u5206\u4eba\u90fd\u662f\u4e00\u5b9a\u7684\uff0c\u6240\u4ee51~2s \u8bf4\u51fa\u7684\u8bcd\u7684\u4e2a\u6570\u4e5f\u662f\u56fa\u5b9a\u7684\uff0c\u9ed8\u8ba4\u4e3a6\u3002\n\n`y_n()`\u8f93\u51fa\u4e3a\u5b57\u7b26\u4e32\uff1a\n\n```\n Positive: \u80af\u5b9a\n\n\u200b Negtive: \u5426\u5b9a\n\n\u200b Nonsense: \u65e0\u610f\u4e49\n\n\u200b Incognizance: \u4e0d\u8bc6\u522b\n\n\u200b too long: \u5b57\u7b26\u4e32\u957f\u5ea6\u8d85\u8fc7thre\n```\n\n### 4.\u95ee\u9898\n\n1. \u6709\u7684\u8bcd\u6709\u8bed\u4e49\u6027\uff0c\u4f8b\u5982\u201c\u55ef\u201d\uff0c\u5f88\u96be\u8bf4\u6e05\u695a\u5b83\u8868\u793a\u80af\u5b9a\u8fd8\u662f\u8bed\u6c14\u8bcd\u3002\n\n\n### 5.\u534f\u8bae\n\nMIT", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/foowaa/short-chn-yn/", "keywords": "Chinese,NLP", "license": "", "maintainer": "", "maintainer_email": "", "name": "short-chn-yn", "package_url": "https://pypi.org/project/short-chn-yn/", "platform": "", "project_url": "https://pypi.org/project/short-chn-yn/", "project_urls": { "Homepage": "https://github.com/foowaa/short-chn-yn/" }, "release_url": "https://pypi.org/project/short-chn-yn/0.0.2/", "requires_dist": null, "requires_python": "", "summary": "Short Chinses literal YES or NO recognition by logic", "version": "0.0.2" }, "last_serial": 5198787, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "7aee867fe17dd49255388e6f76a36f4d", "sha256": "813c560a35986669066d5d4c3597d17de4e3dab66d484ef532a2e70d98001ac5" }, "downloads": -1, "filename": "short-chn-yn-0.0.2.tar.gz", "has_sig": false, "md5_digest": "7aee867fe17dd49255388e6f76a36f4d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4751, "upload_time": "2019-04-28T06:52:04", "url": "https://files.pythonhosted.org/packages/9c/12/14b2f6491243569ab6376feea5252d27678286570101f5c76d0937ee0d05/short-chn-yn-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7aee867fe17dd49255388e6f76a36f4d", "sha256": "813c560a35986669066d5d4c3597d17de4e3dab66d484ef532a2e70d98001ac5" }, "downloads": -1, "filename": "short-chn-yn-0.0.2.tar.gz", "has_sig": false, "md5_digest": "7aee867fe17dd49255388e6f76a36f4d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4751, "upload_time": "2019-04-28T06:52:04", "url": "https://files.pythonhosted.org/packages/9c/12/14b2f6491243569ab6376feea5252d27678286570101f5c76d0937ee0d05/short-chn-yn-0.0.2.tar.gz" } ] }