{ "info": { "author": "Micha\u0142 Kosturek", "author_email": "eemkos@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "dictionary-model\n----------------\n\nTo use, first create CharPredictor object::\n\n >>> predictor = CharPredictor()\n\nThis may take a while as model is being downloaded and loaded.\n\nThen, to track utterance context, you can add letter index to context::\n\n >>> letter_index = 1 # 1 -> a, letters should be indexed in order: ' abcdefghijklmnopqrstuvwxyz' (0 -> space)\n >>> predictor.add_to_context(letter_index)\n\nor you can add letter as string of length 1 (make sure it is one of AsciiEncoder.AVAILABLE_CHARS)::\n\n >>> letter = 'a'\n >>> predictor.add_to_context(letter)\n\nor you can add probability distribution for all AsciiEncoder.AVAILABLE_CHARS letters::\n\n >>> import numpy as np\n >>> import AsciiEncoder as AE\n >>>\n >>> num_chars = len(AE.AVAILABLE_CHARS)\n >>> letter_distr = np.random.random((1, num_chars)) # random proba distribution\n >>> predictor.add_to_context(letter_distr)\n\nAnd finally - you can predict probabilities of each letter coming next after text stored in context. (Letters are indexed in order shown below)::\n\n >>> predictor.transform()\n\nLetters order::\n\n ' abcdefghijklmnopqrstuvwxyz' # space character comes at index 0, then alphabetical order for indices from 1 to 26\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "Micha\u0142 Kosturek", "maintainer": "", "maintainer_email": "", "name": "dictionary-model", "package_url": "https://pypi.org/project/dictionary-model/", "platform": "", "project_url": "https://pypi.org/project/dictionary-model/", "project_urls": null, "release_url": "https://pypi.org/project/dictionary-model/0.2.4/", "requires_dist": null, "requires_python": "", "summary": "Model for tracking context of utterance and predicting future characters.", "version": "0.2.4" }, "last_serial": 3326512, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "db3495a82effe7311cd4217514a24df1", "sha256": "a9ae0ade83a78a331b98c1c5b67919f1cbea1eb32aeb7540dfe1858ab7c4b6e9" }, "downloads": -1, "filename": "dictionary-model-0.2.tar.gz", "has_sig": false, "md5_digest": "db3495a82effe7311cd4217514a24df1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2848, "upload_time": "2017-10-21T16:13:35", "url": "https://files.pythonhosted.org/packages/37/0a/cabbb27b9376d0cbc460b5083b92f55f5108cccf073bbeba55563c5667eb/dictionary-model-0.2.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "1ce04a743f18b1b0fcce546acad95037", "sha256": "366351737209baa1ae9f29cc43f493a8ca8925a8d72f8518046125dfc9c3a842" }, "downloads": -1, "filename": "dictionary-model-0.2.2.tar.gz", "has_sig": false, "md5_digest": "1ce04a743f18b1b0fcce546acad95037", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2782, "upload_time": "2017-10-21T17:29:55", "url": "https://files.pythonhosted.org/packages/b6/00/32b6b166e7c2b14bcf0be810f40767fab37bccb612da27df6ae8c68d0774/dictionary-model-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "b59d4a6b02623b2be2a1dfd675033a9c", "sha256": "a5408123a9b0586eb9f525fb344d9c1a71638c9732370c89cf39082ecdad10b0" }, "downloads": -1, "filename": "dictionary-model-0.2.3.tar.gz", "has_sig": false, "md5_digest": "b59d4a6b02623b2be2a1dfd675033a9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2879, "upload_time": "2017-10-21T17:33:52", "url": "https://files.pythonhosted.org/packages/47/7a/2517604f6505c7679965c9aa5f07e9b40656c518a50dc20f145449f8fe69/dictionary-model-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "6daa9bd5198f2570d92927ff88fe10c9", "sha256": "457b898d60a282146b308788cd21281624b914828e8b5124146b2537834dc647" }, "downloads": -1, "filename": "dictionary-model-0.2.4.tar.gz", "has_sig": false, "md5_digest": "6daa9bd5198f2570d92927ff88fe10c9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3043, "upload_time": "2017-11-12T16:04:43", "url": "https://files.pythonhosted.org/packages/dd/9e/b5cc15cd01793528fcd7e797d5751e89ee3d117423c8874be235475e63cf/dictionary-model-0.2.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6daa9bd5198f2570d92927ff88fe10c9", "sha256": "457b898d60a282146b308788cd21281624b914828e8b5124146b2537834dc647" }, "downloads": -1, "filename": "dictionary-model-0.2.4.tar.gz", "has_sig": false, "md5_digest": "6daa9bd5198f2570d92927ff88fe10c9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3043, "upload_time": "2017-11-12T16:04:43", "url": "https://files.pythonhosted.org/packages/dd/9e/b5cc15cd01793528fcd7e797d5751e89ee3d117423c8874be235475e63cf/dictionary-model-0.2.4.tar.gz" } ] }