{ "info": { "author": "caihaoyu", "author_email": "chywj7@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Build Tools" ], "description": "# sner\nPython wrapper around the Stanford Named Entity Recognizer (NER) Server and the Part-Of-Speech (POS) Tagger Server.\n\n[![PyPI version](https://badge.fury.io/py/sner.svg)](https://badge.fury.io/py/sner)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/caihaoyu/sner/master/LICENSE)\n\n# Stanford Named Entity Recognizer Project\n\n* [Home Page](https://nlp.stanford.edu/software/CRF-NER.shtml)\n* [Running NER as a Server](https://nlp.stanford.edu/software/crf-faq.shtml#cc)\n\n# Stanford Part-Of-Speech Tagger Project\n\n* [Home Page](https://nlp.stanford.edu/software/tagger.shtml)\n* [Running POS as a Server](https://nlp.stanford.edu/software/pos-tagger-faq.html#e)\n\n# Installation\n```bash\npip install sner\n```\nor\n\n```bash\npython setup install\n```\n\n# Start\n## NER Client\nRun the following commands to start the NER server\n\n```bash\ncd your_stanford_ner_dir\njava -Djava.ext.dirs=./lib -cp stanford-ner.jar edu.stanford.nlp.ie.NERServer -port 9199 -loadClassifier ./classifiers/english.all.3class.distsim.crf.ser.gz -tokenizerFactory edu.stanford.nlp.process.WhitespaceTokenizer -tokenizerOptions tokenizeNLs=false\n```\nUse the following in Python to access the NER server\n\n```python\nfrom sner import Ner\n\ntest_string = \"Alice went to the Museum of Natural History.\"\ntagger = Ner(host='localhost',port=9199)\nprint(tagger.get_entities(test_string))\n\n```\nThe following results are expected\n\n```python\n[('Alice', 'PERSON'),\n ('went', 'O'),\n ('to', 'O'),\n ('the', 'O'),\n ('Museum', 'ORGANIZATION'),\n ('of', 'ORGANIZATION'),\n ('Natural', 'ORGANIZATION'),\n ('History', 'ORGANIZATION'),\n ('.', 'O')]\n```\n\n## POS Client\nRun the following commands to start the POS server\n\n```bash\ncd your_stanford_pos_dir\njava -cp stanford-postagger.jar edu.stanford.nlp.tagger.maxent.MaxentTaggerServer -port 9198 -model models/english-bidirectional-distsim.tagger\n```\nUse the following in Python to access the POS server\n\n```python\nfrom sner import POSClient\n\ntest_string = \"Alice went to the Museum of Natural History.\"\ntagger = POSClient(host='localhost', port=9198)\nprint(tagger.tag(test_string))\n```\nThe following results are expected\n\n```python\n[('Alice', 'NNP'),\n ('went', 'VBD'),\n ('to', 'TO'),\n ('the', 'DT'),\n ('Museum', 'NNP'),\n ('of', 'IN'),\n ('Natural', 'NNP'),\n ('History', 'NN'),\n ('.', '.')]\n```\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/caihaoyu/sner", "keywords": "python ner nlp stanford Named Entity Recognizer", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "sner", "package_url": "https://pypi.org/project/sner/", "platform": "", "project_url": "https://pypi.org/project/sner/", "project_urls": { "Homepage": "https://github.com/caihaoyu/sner" }, "release_url": "https://pypi.org/project/sner/0.2.12/", "requires_dist": null, "requires_python": "", "summary": "The Python interface to the Stanford Named Entity Recognizer Server.", "version": "0.2.12" }, "last_serial": 3872439, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "0468b3206ed89756b0f63793ef996bb0", "sha256": "76b1198c3830328884160ceae4e7641d7d6745f8d836452a0883a267fad6a7f5" }, "downloads": -1, "filename": "sner-0.0.1.tar.gz", "has_sig": false, "md5_digest": "0468b3206ed89756b0f63793ef996bb0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2350, "upload_time": "2017-03-27T11:32:14", "url": "https://files.pythonhosted.org/packages/e4/26/aac1300ea51811760d458517a5a1db97db24ce8041289a10dd54680a7def/sner-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "e221e80c52d153ef18071c58d8a559ee", "sha256": "0ca3ae560a5087242956101611c46b7d1110f16f2c665c98e8294a9f08666821" }, "downloads": -1, "filename": "sner-0.0.2.tar.gz", "has_sig": false, "md5_digest": "e221e80c52d153ef18071c58d8a559ee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2365, "upload_time": "2017-03-27T12:04:45", "url": "https://files.pythonhosted.org/packages/d8/a4/eca48aa697946405ebcad455a62ee25b10caacabf988169f5e73158e4ba3/sner-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "c31f9572094b8b387670189a53fc99b9", "sha256": "911e87f5e42054437d134e744a7738f5216db1d131ebea23d4d3d675f99134ac" }, "downloads": -1, "filename": "sner-0.0.3.tar.gz", "has_sig": false, "md5_digest": "c31f9572094b8b387670189a53fc99b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2369, "upload_time": "2017-03-27T12:41:30", "url": "https://files.pythonhosted.org/packages/61/d8/653f62b151959d9220c6720429a2f8d7c539facd856de3584c8046b4b273/sner-0.0.3.tar.gz" } ], "0.1": [ { "comment_text": "", "digests": { "md5": "b063f34f14c9abf7f301058aed534f27", "sha256": "7f1c4a90580f8b63b28a486ec5a3afc795ce742350eeade5d2ad89336306602c" }, "downloads": -1, "filename": "sner-0.1.tar.gz", "has_sig": false, "md5_digest": "b063f34f14c9abf7f301058aed534f27", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2372, "upload_time": "2017-03-27T12:49:43", "url": "https://files.pythonhosted.org/packages/b4/95/35d0691540554df6abd9651839aa672df82c5fdf196dd3628abf535adece/sner-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "cb8f70c7ba03a18767c586e588f6f4f1", "sha256": "a26c4e6655613a5785447dcdc648484660ae9c102c051fe59f215d6d7db97663" }, "downloads": -1, "filename": "sner-0.2.tar.gz", "has_sig": false, "md5_digest": "cb8f70c7ba03a18767c586e588f6f4f1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2556, "upload_time": "2017-03-28T10:52:26", "url": "https://files.pythonhosted.org/packages/cb/e8/68d3f30da0a7a565d387996c1cdb602b873fb5cd503df5a62d7daa5091ec/sner-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "934b05831c6c886543e00649e3d1f244", "sha256": "6563a3b1dad7ecc30ab3e4682ee9531b2ba3ecdd577947597dcdcce57f3d4030" }, "downloads": -1, "filename": "sner-0.2.1.tar.gz", "has_sig": false, "md5_digest": "934b05831c6c886543e00649e3d1f244", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2572, "upload_time": "2017-06-27T09:37:34", "url": "https://files.pythonhosted.org/packages/cb/74/a4ca95666e48ac1bda1528f1f6653a63b57bace8c22817b8dcee9c020041/sner-0.2.1.tar.gz" } ], "0.2.10": [ { "comment_text": "", "digests": { "md5": "f5ea45cecdbb5f0b00fd609be24b84c9", "sha256": "77c39b058a1d53f4ed037efb42b0198db8dbccad827af2421de714ef3174e9ff" }, "downloads": -1, "filename": "sner-0.2.10.tar.gz", "has_sig": false, "md5_digest": "f5ea45cecdbb5f0b00fd609be24b84c9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3105, "upload_time": "2018-04-04T08:04:31", "url": "https://files.pythonhosted.org/packages/78/a8/089d07072ae2dab9d45b3b37bfda1177be82a2c8b53830572d9a3a8d2298/sner-0.2.10.tar.gz" } ], "0.2.11": [ { "comment_text": "", "digests": { "md5": "4ae78da2a41b522297952aabbb4dcb14", "sha256": "7edf4759af07792ea92c1b84c16ba0cc03bd6a3bceaa1e51b317caebda1ddbcb" }, "downloads": -1, "filename": "sner-0.2.11.tar.gz", "has_sig": false, "md5_digest": "4ae78da2a41b522297952aabbb4dcb14", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3113, "upload_time": "2018-05-07T10:27:33", "url": "https://files.pythonhosted.org/packages/1b/f5/8021880eaf83196d5088814f1a5e6d0716c2b95ca76f100fc889a6055563/sner-0.2.11.tar.gz" } ], "0.2.12": [ { "comment_text": "", "digests": { "md5": "801cdb33fd644753bdb5bc245084f9b6", "sha256": "e349cddd1bc26d89e69d8e7e9be7d35a6cf194094948576d39236bbf906f5134" }, "downloads": -1, "filename": "sner-0.2.12.tar.gz", "has_sig": false, "md5_digest": "801cdb33fd644753bdb5bc245084f9b6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3112, "upload_time": "2018-05-17T13:57:45", "url": "https://files.pythonhosted.org/packages/dd/12/2532ca59b722b1573dd9015e831bc553524d9292199b131ea2b730911288/sner-0.2.12.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "69cc5c7f9423d51a9c58c08d20c375ba", "sha256": "1f4b8e1926e4a455ce66c41afd0f3c7505653d8a24f89bde31833aa0cd4ed8db" }, "downloads": -1, "filename": "sner-0.2.2.tar.gz", "has_sig": false, "md5_digest": "69cc5c7f9423d51a9c58c08d20c375ba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2661, "upload_time": "2018-01-11T07:05:30", "url": "https://files.pythonhosted.org/packages/bf/85/f65bb66682e99d8b098b91a04edc92d8efa22c2e1a58f779a0d8b270a688/sner-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "7ad926aa7539d599aef1cb9f8e47ec43", "sha256": "5bf24e9b477eb30bca90a31b501cbd2398c0b9b100cfbb4f106d7194edad9df4" }, "downloads": -1, "filename": "sner-0.2.3.tar.gz", "has_sig": false, "md5_digest": "7ad926aa7539d599aef1cb9f8e47ec43", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2927, "upload_time": "2018-01-28T13:12:50", "url": "https://files.pythonhosted.org/packages/13/b6/9e6db1e1018aa1f5e0f1dd87c380eed864e871204056557c5c438acfe753/sner-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "4d8ffb61237fbc6e995776f37aba2999", "sha256": "423ac8d8fd230ca8f62849a3b443a934567faa4258cd2d88069a04d39d7f0fd4" }, "downloads": -1, "filename": "sner-0.2.4.tar.gz", "has_sig": false, "md5_digest": "4d8ffb61237fbc6e995776f37aba2999", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3122, "upload_time": "2018-04-04T07:01:24", "url": "https://files.pythonhosted.org/packages/63/a2/8bd3041374b46d0b6c5d85c13e11b1fd666ae23e9e5ab61688c2dc2c226e/sner-0.2.4.tar.gz" } ], "0.2.5": [ { "comment_text": "", "digests": { "md5": "1836ab3234449f116518819a5cf0278b", "sha256": "dc213c94683f24356e61cb21339d7879970cf0fe571c76dff212a98c84af3ebb" }, "downloads": -1, "filename": "sner-0.2.5.tar.gz", "has_sig": false, "md5_digest": "1836ab3234449f116518819a5cf0278b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3141, "upload_time": "2018-04-04T07:31:40", "url": "https://files.pythonhosted.org/packages/21/e7/5fff5829527a6ca604d05c0d6193299c82e9a0bd5543bff0d1ea91f8b231/sner-0.2.5.tar.gz" } ], "0.2.6": [ { "comment_text": "", "digests": { "md5": "644735a8fce751d293a6454579f8ac88", "sha256": "ba9925ea8eea77e5664172085b533dac57a1371d12b146d97da1235cdeb5c018" }, "downloads": -1, "filename": "sner-0.2.6.tar.gz", "has_sig": false, "md5_digest": "644735a8fce751d293a6454579f8ac88", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3141, "upload_time": "2018-04-04T07:40:46", "url": "https://files.pythonhosted.org/packages/25/45/88990e42f28708cc3946e470a3c30b721475b49525145ed6e3e3ec2cebc4/sner-0.2.6.tar.gz" } ], "0.2.7": [ { "comment_text": "", "digests": { "md5": "c3964ba07c495fa5cfb98b16971a1768", "sha256": "0f92e7b94caac6af43e75d654174068989587d34876826e895b86c888ec2c4f2" }, "downloads": -1, "filename": "sner-0.2.7.tar.gz", "has_sig": false, "md5_digest": "c3964ba07c495fa5cfb98b16971a1768", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3167, "upload_time": "2018-04-04T07:48:26", "url": "https://files.pythonhosted.org/packages/5f/b5/f263e5af0fdc47d5925ca279f9619fcf83aed1363c50ca8d1dc1ca9e89d5/sner-0.2.7.tar.gz" } ], "0.2.8": [ { "comment_text": "", "digests": { "md5": "a9ebe1905b1e002e250ccb2d18eb85e5", "sha256": "6892ee4d12cae46bd49122aea90a0ebad7fdb11d89d46666eb3845385ba7684b" }, "downloads": -1, "filename": "sner-0.2.8.tar.gz", "has_sig": false, "md5_digest": "a9ebe1905b1e002e250ccb2d18eb85e5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3171, "upload_time": "2018-04-04T07:53:19", "url": "https://files.pythonhosted.org/packages/b0/9d/8d9d591f26345a00f36c356af2cc663fcef4bec14c6f3d9a8938a0e96072/sner-0.2.8.tar.gz" } ], "0.2.9": [ { "comment_text": "", "digests": { "md5": "6df2a11d50a36246608f7c482828540f", "sha256": "33f0dcb528ea78c79e416964560c3ab8568f80689bbf864f810fa1848f3c65ae" }, "downloads": -1, "filename": "sner-0.2.9.tar.gz", "has_sig": false, "md5_digest": "6df2a11d50a36246608f7c482828540f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3168, "upload_time": "2018-04-04T07:57:41", "url": "https://files.pythonhosted.org/packages/93/f2/7d8110a43e30c2a82a8b583b52236379ae1b724b0c632ed606bbc633507d/sner-0.2.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "801cdb33fd644753bdb5bc245084f9b6", "sha256": "e349cddd1bc26d89e69d8e7e9be7d35a6cf194094948576d39236bbf906f5134" }, "downloads": -1, "filename": "sner-0.2.12.tar.gz", "has_sig": false, "md5_digest": "801cdb33fd644753bdb5bc245084f9b6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3112, "upload_time": "2018-05-17T13:57:45", "url": "https://files.pythonhosted.org/packages/dd/12/2532ca59b722b1573dd9015e831bc553524d9292199b131ea2b730911288/sner-0.2.12.tar.gz" } ] }