{
"info": {
"author": "YuSan19",
"author_email": "ysoga19@gmail.com",
"bugtrack_url": null,
"classifiers": [],
"description": "Borscht\n====\n**The Python Module of The Japanese sentence generator by Markov chain.**\n\n\n## Description\nThe Python Module of The Japanese sentence generator by Markov chain.\n\nDo you want to generate text by Markov chain?\nIt's quite easy! Just copy the example below.\n\n## Requirement\nIf you want to run this module, please install these:\n\n- Python 3.x\n- MeCab - \n- mecab-python3 (Python Module)\n\n**Recommendation:**\nWe recommend that you use this MeCab dictionary, `mecab-ipadic-NEologd`\n\n> **If you want detailed information about how to install MeCab and `mecab-ipadic-NEologd`,\nplease see this post. (written in Japanese):\n**\n\n\n## Example Usage\n\n```python\n# Import borscht.\nimport borscht as bor\n\n# Text used for chain generation of Markov chain\ntext = \"\"\"\n\u3000\u89aa\u8b72\u308a\u306e\u7121\u9244\u7832\u3067\u5c0f\u4f9b\u306e\u6642\u304b\u3089\u640d\u3070\u304b\u308a\u3057\u3066\u3044\u308b\u3002\u5c0f\u5b66\u6821\u306b\u5c45\u308b\u6642\u5206\u5b66\u6821\u306e\u4e8c\u968e\u304b\u3089\u98db\u3073\u964d\u308a\u3066\u4e00\u9031\u9593\u307b\u3069\u8170\u3092\u629c\u304b\u3057\u305f\u4e8b\u304c\u3042\u308b\u3002\n\u306a\u305c\u305d\u3093\u306a\u7121\u95c7\u3092\u3057\u305f\u3068\u805e\u304f\u4eba\u304c\u3042\u308b\u304b\u3082\u77e5\u308c\u306c\u3002\u5225\u6bb5\u6df1\u3044\u7406\u7531\u3067\u3082\u306a\u3044\u3002\n\u65b0\u7bc9\u306e\u4e8c\u968e\u304b\u3089\u9996\u3092\u51fa\u3057\u3066\u3044\u305f\u3089\u3001\u540c\u7d1a\u751f\u306e\u4e00\u4eba\u304c\u5197\u8ac7\u306b\u3001\u3044\u304f\u3089\u5a01\u5f35\u3063\u3066\u3082\u3001\u305d\u3053\u304b\u3089\u98db\u3073\u964d\u308a\u308b\u4e8b\u306f\u51fa\u6765\u307e\u3044\u3002\u5f31\u866b\u3084\u30fc\u3044\u3002\u3068\u56c3\u3057\u305f\u304b\u3089\u3067\u3042\u308b\u3002\n\u5c0f\u4f7f\u306b\u8ca0\u3076\u3055\u3063\u3066\u5e30\u3063\u3066\u6765\u305f\u6642\u3001\u304a\u3084\u3058\u304c\u5927\u304d\u306a\u773c\u3092\u3057\u3066\u4e8c\u968e\u3050\u3089\u3044\u304b\u3089\u98db\u3073\u964d\u308a\u3066\u8170\u3092\u629c\u304b\u3059\u5974\u304c\u3042\u308b\u304b\u3068\u4e91\u3063\u305f\u304b\u3089\u3001\u3053\u306e\u6b21\u306f\u629c\u304b\u3055\u305a\u306b\u98db\u3093\u3067\u898b\u305b\u307e\u3059\u3068\u7b54\u3048\u305f\u3002\n\u3000\u89aa\u985e\u306e\u3082\u306e\u304b\u3089\u897f\u6d0b\u88fd\u306e\u30ca\u30a4\u30d5\u3092\u8cb0\u3063\u3066\u5947\u9e97\u306a\u5203\u3092\u65e5\u306b\u7ff3\u3057\u3066\u3001\u53cb\u9054\u306b\u898b\u305b\u3066\u3044\u305f\u3089\u3001\u4e00\u4eba\u304c\u5149\u308b\u4e8b\u306f\u5149\u308b\u304c\u5207\u308c\u305d\u3046\u3082\u306a\u3044\u3068\u4e91\u3063\u305f\u3002\n\u5207\u308c\u306c\u4e8b\u304c\u3042\u308b\u304b\u3001\u4f55\u3067\u3082\u5207\u3063\u3066\u307f\u305b\u308b\u3068\u53d7\u3051\u5408\u3063\u305f\u3002\u305d\u3093\u306a\u3089\u541b\u306e\u6307\u3092\u5207\u3063\u3066\u307f\u308d\u3068\u6ce8\u6587\u3057\u305f\u304b\u3089\u3001\u4f55\u3060\u6307\u3050\u3089\u3044\u3053\u306e\u901a\u308a\u3060\u3068\u53f3\u306e\u624b\u306e\u89aa\u6307\u306e\u7532\u3092\u306f\u3059\u306b\u5207\u308a\u8fbc\u3093\u3060\u3002\n\u5e78\u30ca\u30a4\u30d5\u304c\u5c0f\u3055\u3044\u306e\u3068\u3001\u89aa\u6307\u306e\u9aa8\u304c\u5805\u304b\u3063\u305f\u306e\u3067\u3001\u4eca\u3060\u306b\u89aa\u6307\u306f\u624b\u306b\u4ed8\u3044\u3066\u3044\u308b\u3002\u3057\u304b\u3057\u5275\u75d5\u306f\u6b7b\u306c\u307e\u3067\u6d88\u3048\u306c\u3002\n\u3000\u5ead\u3092\u6771\u3078\u4e8c\u5341\u6b69\u306b\u884c\u304d\u5c3d\u3059\u3068\u3001\u5357\u4e0a\u304c\u308a\u306b\u3044\u3055\u3055\u304b\u3070\u304b\u308a\u306e\u83dc\u5712\u304c\u3042\u3063\u3066\u3001\u771f\u4e2d\u306b\u6817\u306e\u6728\u304c\u4e00\u672c\u7acb\u3063\u3066\u3044\u308b\u3002\n\u3053\u308c\u306f\u547d\u3088\u308a\u5927\u4e8b\u306a\u6817\u3060\u3002\u5b9f\u306e\u719f\u3059\u308b\u6642\u5206\u306f\u8d77\u304d\u629c\u3051\u306b\u80cc\u6238\u3092\u51fa\u3066\u843d\u3061\u305f\u5974\u3092\u62fe\u3063\u3066\u304d\u3066\u3001\u5b66\u6821\u3067\u98df\u3046\u3002\n\u83dc\u5712\u306e\u897f\u5074\u304c\u5c71\u57ce\u5c4b\u3068\u3044\u3046\u8cea\u5c4b\u306e\u5ead\u7d9a\u304d\u3067\u3001\u3053\u306e\u8cea\u5c4b\u306b\u52d8\u592a\u90ce\u3068\u3044\u3046\u5341\u4e09\u56db\u306e\u5005\u304c\u5c45\u305f\u3002\n\u52d8\u592a\u90ce\u306f\u7121\u8ad6\u5f31\u866b\u3067\u3042\u308b\u3002\u5f31\u866b\u306e\u7656\u306b\u56db\u3064\u76ee\u57a3\u3092\u4e57\u308a\u3053\u3048\u3066\u3001\u6817\u3092\u76d7\u307f\u306b\u304f\u308b\u3002\u3042\u308b\u65e5\u306e\u5915\u65b9\u6298\u6238\u306e\u852d\u306b\u96a0\u308c\u3066\u3001\u3068\u3046\u3068\u3046\u52d8\u592a\u90ce\u3092\u6355\u307e\u3048\u3066\u3084\u3063\u305f\u3002\n\u305d\u306e\u6642\u52d8\u592a\u90ce\u306f\u9003\u3052\u8def\u3092\u5931\u3063\u3066\u3001\u4e00\u751f\u61f8\u547d\u306b\u98db\u3073\u304b\u304b\u3063\u3066\u304d\u305f\u3002\u5411\u3046\u306f\u4e8c\u3064\u3070\u304b\u308a\u5e74\u4e0a\u3067\u3042\u308b\u3002\n\u5f31\u866b\u3060\u304c\u529b\u306f\u5f37\u3044\u3002\u9262\u306e\u958b\u3044\u305f\u982d\u3092\u3001\u3053\u3063\u3061\u306e\u80f8\u3078\u5b9b\u3066\u3066\u3050\u3044\u3050\u3044\u62bc\u3057\u305f\u62cd\u5b50\u306b\u3001\u52d8\u592a\u90ce\u306e\u982d\u304c\u3059\u3079\u3063\u3066\u3001\u304a\u308c\u306e\u88b7\u306e\u8896\u306e\u4e2d\u306b\u306f\u3044\u3063\u305f\u3002\n\u90aa\u9b54\u306b\u306a\u3063\u3066\u624b\u304c\u4f7f\u3048\u306c\u304b\u3089\u3001\u7121\u6697\u306b\u624b\u3092\u632f\u3063\u305f\u3089\u3001\u8896\u306e\u4e2d\u306b\u3042\u308b\u52d8\u592a\u90ce\u306e\u982d\u304c\u3001\u53f3\u5de6\u3078\u3050\u3089\u3050\u3089\u9761\u3044\u305f\u3002\n\u3057\u307e\u3044\u306b\u82e6\u3057\u304c\u3063\u3066\u8896\u306e\u4e2d\u304b\u3089\u3001\u304a\u308c\u306e\u4e8c\u306e\u8155\u3078\u98df\u3044\u4ed8\u3044\u305f\u3002\u75db\u304b\u3063\u305f\u304b\u3089\u52d8\u592a\u90ce\u3092\u57a3\u6839\u3078\u62bc\u3057\u3064\u3051\u3066\u304a\u3044\u3066\u3001\u8db3\u6426\u3092\u304b\u3051\u3066\u5411\u3046\u3078\u5012\u3057\u3066\u3084\u3063\u305f\u3002\n\u5c71\u57ce\u5c4b\u306e\u5730\u9762\u306f\u83dc\u5712\u3088\u308a\u516d\u5c3a\u304c\u305f\u4f4e\u3044\u3002\u52d8\u592a\u90ce\u306f\u56db\u3064\u76ee\u57a3\u3092\u534a\u5206\u5d29\u3057\u3066\u3001\u81ea\u5206\u306e\u9818\u5206\u3078\u771f\u9006\u69d8\u306b\u843d\u3061\u3066\u3001\u3050\u3046\u3068\u4e91\u3063\u305f\u3002\n\u52d8\u592a\u90ce\u304c\u843d\u3061\u308b\u3068\u304d\u306b\u3001\u304a\u308c\u306e\u88b7\u306e\u7247\u8896\u304c\u3082\u3052\u3066\u3001\u6025\u306b\u624b\u304c\u81ea\u7531\u306b\u306a\u3063\u305f\u3002\u305d\u306e\u6669\u6bcd\u304c\u5c71\u57ce\u5c4b\u306b\u8a6b\u3073\u306b\u884c\u3063\u305f\u3064\u3044\u3067\u306b\u88b7\u306e\u7247\u8896\u3082\u53d6\u308a\u8fd4\u3057\u3066\u6765\u305f\u3002\n\u3000\u3053\u306e\u5916\u3044\u305f\u305a\u3089\u306f\u5927\u5206\u3084\u3063\u305f\u3002\u5927\u5de5\u306e\u517c\u516c\u3068\u80b4\u5c4b\u306e\u89d2\u3092\u3064\u308c\u3066\u3001\u8302\u4f5c\u306e\u4eba\u53c2\u7560\u3092\u3042\u3089\u3057\u305f\u4e8b\u304c\u3042\u308b\u3002\u4eba\u53c2\u306e\u82bd\u304c\u51fa\u63c3\u308f\u306c\u51e6\u3078\u85c1\u304c\u4e00\u9762\u306b\u6577\u3044\u3066\u3042\u3063\u305f\u304b\u3089\u3001\n\u305d\u306e\u4e0a\u3067\u4e09\u4eba\u304c\u534a\u65e5\u76f8\u64b2\u3092\u3068\u308a\u3064\u3065\u3051\u306b\u53d6\u3063\u305f\u3089\u3001\u4eba\u53c2\u304c\u307f\u3093\u306a\u8e0f\u307f\u3064\u3076\u3055\u308c\u3066\u3057\u307e\u3063\u305f\u3002\u53e4\u5ddd\u306e\u6301\u3063\u3066\u3044\u308b\u7530\u5703\u306e\u4e95\u6238\u3092\u57cb\u3081\u3066\u5c3b\u3092\u6301\u3061\u8fbc\u307e\u308c\u305f\u4e8b\u3082\u3042\u308b\u3002\n\u592a\u3044\u5b5f\u5b97\u306e\u7bc0\u3092\u629c\u3044\u3066\u3001\u6df1\u304f\u57cb\u3081\u305f\u4e2d\u304b\u3089\u6c34\u304c\u6e67\u304d\u51fa\u3066\u3001\u305d\u3053\u3044\u3089\u306e\u7a32\u306b\u307f\u305a\u304c\u304b\u304b\u308b\u4ed5\u639b\u3067\u3042\u3063\u305f\u3002\n\u305d\u306e\u6642\u5206\u306f\u3069\u3093\u306a\u4ed5\u639b\u304b\u77e5\u3089\u306c\u304b\u3089\u3001\u77f3\u3084\u68d2\u3061\u304e\u308c\u3092\u304e\u3085\u3046\u304e\u3085\u3046\u4e95\u6238\u306e\u4e2d\u3078\u633f\u3057\u8fbc\u3093\u3067\u3001\u6c34\u304c\u51fa\u306a\u304f\u306a\u3063\u305f\u306e\u3092\u898b\u5c4a\u3051\u3066\u3001\u3046\u3061\u3078\u5e30\u3063\u3066\u98ef\u3092\u98df\u3063\u3066\u3044\u305f\u3089\u3001\n\u53e4\u5ddd\u304c\u771f\u8d64\u306b\u306a\u3063\u3066\u6012\u9cf4\u308a\u8fbc\u3093\u3067\u6765\u305f\u3002\u305f\u3057\u304b\u7f70\u91d1\u3092\u51fa\u3057\u3066\u6e08\u3093\u3060\u3088\u3046\u3067\u3042\u308b\u3002\n\"\"\"\n# \u590f\u76ee\u6f31\u77f3 \u300c\u574a\u3063\u3061\u3083\u3093\u300d\u3088\u308a\n\ncg = bor.ChainGenerator(text) # Generate instance of class that generates chains\ncg.dump(\"./chain.json\") # Dump json file written about chains' info.\ntg = bor.TextGenerator(\"./chain.json\")\n# Generate instance of class that generates sentence.\n\nfor i in range(10):\n sentence = tg.generate() # Generate sentence\n print(tg.generate())\n```\n\n## Installation\nIt's quite simple using pip command:\n\n```bash\n$ pip install borscht\n```\n\n## Contribution\n\n1. Fork it ()\n2. Create your feature branch (`git checkout -b feature/`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin feature/`)\n5. Create new Pull Request\n\n## License\n\nThis repository licensed under the [Apache License, Version 2.0](/LICENSE). \nPlease see the [LICENSE](/LICENSE) file.\n\n## Author\n\n[YuSan19](https://github.com/yu-san-19) and other [Contributors](https://github.com/jscg/Borscht/graphs/contributors).\n\n\n",
"description_content_type": "text/markdown",
"docs_url": null,
"download_url": "",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/jscg/Borscht",
"keywords": "",
"license": "Apache-2.0",
"maintainer": "Junior Social Creators Group",
"maintainer_email": "jscg.official@gmail.com",
"name": "borscht",
"package_url": "https://pypi.org/project/borscht/",
"platform": "",
"project_url": "https://pypi.org/project/borscht/",
"project_urls": {
"Homepage": "https://github.com/jscg/Borscht"
},
"release_url": "https://pypi.org/project/borscht/1.1.0/",
"requires_dist": [
"mecab-python3 (==0.7)"
],
"requires_python": "",
"summary": "The Python Module of The japanese sentence generator by markov chain.",
"version": "1.1.0"
},
"last_serial": 5224729,
"releases": {
"1.0.0": [
{
"comment_text": "",
"digests": {
"md5": "43d50702161e94c8316895ec989e91e4",
"sha256": "16f29192f86ec95b8795e443cde472ad277c00d5c64a929a0556725eedb8bb3c"
},
"downloads": -1,
"filename": "borscht-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "43d50702161e94c8316895ec989e91e4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 7280,
"upload_time": "2018-10-20T11:34:06",
"url": "https://files.pythonhosted.org/packages/82/0d/2e8eeb922801a9f3e46546c6f596ea8ac4c1ee295830260423af890df5db/borscht-1.0.0.tar.gz"
}
],
"1.0.1": [
{
"comment_text": "",
"digests": {
"md5": "cbc3a5af18bf48cd2d7d6a0790d81958",
"sha256": "d95bfa3f726ea3f5ea0f064b8d8d36b14e07aedc57588ab301a55e39daa22893"
},
"downloads": -1,
"filename": "borscht-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "cbc3a5af18bf48cd2d7d6a0790d81958",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 11607,
"upload_time": "2018-10-20T12:26:22",
"url": "https://files.pythonhosted.org/packages/b0/9e/c0211efa5aa9f902417a0aecbdaec699e0dd64a41db604c0972f03477eef/borscht-1.0.1.tar.gz"
}
],
"1.0.2": [
{
"comment_text": "",
"digests": {
"md5": "68426e070df483fdf5ff37fd257fd080",
"sha256": "f7627ea5b8eec09d8bb34ff608dc3b5bb3a7fe635cd57b9f4dcff28381f5e43b"
},
"downloads": -1,
"filename": "borscht-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "68426e070df483fdf5ff37fd257fd080",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6557782,
"upload_time": "2018-12-31T07:39:31",
"url": "https://files.pythonhosted.org/packages/49/c9/d790e5de5cae84e8b1c79784e025a1f2bcb2993792e20883736716857bd8/borscht-1.0.2.tar.gz"
}
],
"1.0.3": [
{
"comment_text": "",
"digests": {
"md5": "eee872795306cd69fb7b63bf20635be0",
"sha256": "c82905e0d4064e2c64c48b1a0a724a2269c4db0ec208efaac9b40fe22463af39"
},
"downloads": -1,
"filename": "borscht-1.0.3.tar.gz",
"has_sig": false,
"md5_digest": "eee872795306cd69fb7b63bf20635be0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6557828,
"upload_time": "2019-03-30T10:05:20",
"url": "https://files.pythonhosted.org/packages/56/00/47ad95699a32bef21198275cf8784a33051dc7e77155e35cf58e8f5c7e69/borscht-1.0.3.tar.gz"
}
],
"1.1.0": [
{
"comment_text": "",
"digests": {
"md5": "6f043e775f332bd84923da69a27ad7f4",
"sha256": "639f54c054a8ca7961a2e8628491db053fd55b05aab06243231da7b7b984e5f2"
},
"downloads": -1,
"filename": "borscht-1.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6f043e775f332bd84923da69a27ad7f4",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 11595,
"upload_time": "2019-05-04T06:04:48",
"url": "https://files.pythonhosted.org/packages/2e/44/c05ee4fea0b6cfb792f2bf9c2eec5ac75426d58d57e3e64384b8b695111d/borscht-1.1.0-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "726d1293d4258b8b6c67cbbc5f9ae5b3",
"sha256": "4cff2fd5a464c145587ac3b73fde5009f22e113ef15e470a3792238f2fb4deb1"
},
"downloads": -1,
"filename": "borscht-1.1.0.tar.gz",
"has_sig": false,
"md5_digest": "726d1293d4258b8b6c67cbbc5f9ae5b3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6558850,
"upload_time": "2019-05-04T06:04:53",
"url": "https://files.pythonhosted.org/packages/51/b2/b922aaddcf2785344bb6392f00ecab1909e668ff0cf6a2529c45a33c618e/borscht-1.1.0.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "6f043e775f332bd84923da69a27ad7f4",
"sha256": "639f54c054a8ca7961a2e8628491db053fd55b05aab06243231da7b7b984e5f2"
},
"downloads": -1,
"filename": "borscht-1.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6f043e775f332bd84923da69a27ad7f4",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 11595,
"upload_time": "2019-05-04T06:04:48",
"url": "https://files.pythonhosted.org/packages/2e/44/c05ee4fea0b6cfb792f2bf9c2eec5ac75426d58d57e3e64384b8b695111d/borscht-1.1.0-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "726d1293d4258b8b6c67cbbc5f9ae5b3",
"sha256": "4cff2fd5a464c145587ac3b73fde5009f22e113ef15e470a3792238f2fb4deb1"
},
"downloads": -1,
"filename": "borscht-1.1.0.tar.gz",
"has_sig": false,
"md5_digest": "726d1293d4258b8b6c67cbbc5f9ae5b3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6558850,
"upload_time": "2019-05-04T06:04:53",
"url": "https://files.pythonhosted.org/packages/51/b2/b922aaddcf2785344bb6392f00ecab1909e668ff0cf6a2529c45a33c618e/borscht-1.1.0.tar.gz"
}
]
}