{ "info": { "author": "Yanai Elazar and Yoav Goldberg", "author_email": "yanaiela@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# Numeric Fused-Head\n\n\nThis is the code used in the paper: \n\n**\"Where\u2019s My Head? Definition, Dataset and Models for Numeric Fused-Heads Identification and Resolution\"**\nYanai Elazar and Yoav Goldberg\n\nto appear in TACL\n\n[preprint](https://arxiv.org/pdf/1905.10886.pdf)\n[demo](http://nlp.biu.ac.il/~lazary/fh/)\n\n\n## Installation\nInstalling the num_fh package is simple as:\n```bash\npip install num_fh\n```\n\n## Prerequisites\n* at least python 3.6 (and specific libraries in the requirements.txt)\n\nWe strongly recommend that you use a new virtual environment to install num_fh\n\n### create a clean conda env\n```bash\nconda create -n nfh python==3.6 anaconda\nsource activate nfh\n```\n\n## Cloning and Running the Library by Yourself\n### clone this repo:\n```bash\ngit clone git@github.com:yanaiela/num_fh.git\n```\n\n### installing python packages\n```bash\npip install -r requirements.txt\n```\n\n## Example Usage\n```python\nimport spacy\nfrom num_fh import NFH\nnlp = spacy.load('en_core_web_sm')\nnfh = NFH(nlp)\nnlp.add_pipe(nfh, first=False)\n\ndoc = nlp(\"I told you two, that only one of them is the one who will get 2 or 3 icecreams\")\nassert doc[16]._.is_nfh == True\nassert doc[18]._.is_nfh == False\nassert doc[3]._.is_deter_nfh == True\nassert doc[16]._.is_deter_nfh == False\nassert len(doc._.nfh) == 4\n```\n\nThe paper (and therefore, also the code) deals with two sub-tasks of the FH solution:\n* Identification\n* Resolution\n\nThese are dealt with separately, and discussed in the paper in sections \n(3,4) and (5,6). These parts are also solved separately in the code, and\ncontain further instructions for each one in dedicated README files:\n[Identification](num_fh/identification/run_files.md) and [Resolution](num_fh/resolution/how2run.md)\n\n\n#### Demo\nTo run the demo, run the following:\n```bash\nexport FLASK_APP=num_fh/demo/server.py\nflask run --port 5000 --host \"\"\n```\n\n## Citing\nIf you find this work relevant to yours, please consider citing us:\n```\n@misc{elazar2019wheres,\n title={Where's My Head? Definition, Dataset and Models for Numeric Fused-Heads Identification and Resolution},\n author={Yanai Elazar and Yoav Goldberg},\n year={2019}\n}\n```\n\n## Contact\nIf you have any question, issue or suggestions, feel free to contact \nus with the emails listed in the paper.\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": "http://nlp.biu.ac.il/~lazary/fh/", "keywords": "nlp numbers missing-elements spacy SpaCy", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "num-fh", "package_url": "https://pypi.org/project/num-fh/", "platform": "", "project_url": "https://pypi.org/project/num-fh/", "project_urls": { "Homepage": "http://nlp.biu.ac.il/~lazary/fh/" }, "release_url": "https://pypi.org/project/num-fh/1.1.1/", "requires_dist": [ "tensorboard-logger", "docopt", "gensim", "numpy", "sklearn", "click", "stanfordcorenlp (==3.8.0.1)", "spacy", "nltk", "statsmodels", "allennlp", "Flask" ], "requires_python": "", "summary": "numeric fused-head identification and resolution", "version": "1.1.1" }, "last_serial": 5726098, "releases": { "1.1.0": [ { "comment_text": "", "digests": { "md5": "dbcf88171d4cee158a4dc7ec533ba144", "sha256": "4d4b9daae786f493097378078fd0b27e4d895e53ead0f671636f4cb6c297c86b" }, "downloads": -1, "filename": "num_fh-1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "dbcf88171d4cee158a4dc7ec533ba144", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 31135, "upload_time": "2019-08-22T10:12:11", "url": "https://files.pythonhosted.org/packages/c7/71/c0d4fe534604e3141db96c3d677d44f797ed7e48eb22fd9256b4255d7ff3/num_fh-1.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a093a4f2bdb6182798a57eb9c3765dfd", "sha256": "a47adbf48be09b4bd54e6d7dc6a50f4ea839bbe553d860fdeca07448255af31a" }, "downloads": -1, "filename": "num_fh-1.1.0.tar.gz", "has_sig": false, "md5_digest": "a093a4f2bdb6182798a57eb9c3765dfd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22303, "upload_time": "2019-08-22T10:12:13", "url": "https://files.pythonhosted.org/packages/16/38/855baa28c56e265f20123510134a5eb99030f07fb8e2205bc750cfb4fc93/num_fh-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "9a0e01b3bbe9613f93c4c043151e8ece", "sha256": "b96a084d1c1d05dc6e9952d008ad9b536aa01736cab7ef9030da2650df958559" }, "downloads": -1, "filename": "num_fh-1.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9a0e01b3bbe9613f93c4c043151e8ece", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 33713, "upload_time": "2019-08-25T05:15:44", "url": "https://files.pythonhosted.org/packages/a2/1a/3a30ffdce0d287dea8957850e0b542fe061894841a053f49b2ed15828a15/num_fh-1.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "68c49bb0b1e6b64a340fc82eaab1d232", "sha256": "e938d0f3b982d5a52cfbe62b3be5379fefb47813f186b278809ca53a3f333b65" }, "downloads": -1, "filename": "num_fh-1.1.1.tar.gz", "has_sig": false, "md5_digest": "68c49bb0b1e6b64a340fc82eaab1d232", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23020, "upload_time": "2019-08-25T05:15:45", "url": "https://files.pythonhosted.org/packages/a1/9d/4ae9fbfeb52a701346e80d8b9df1a595f6d9fa17ded0a725c2878ccc8ffd/num_fh-1.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9a0e01b3bbe9613f93c4c043151e8ece", "sha256": "b96a084d1c1d05dc6e9952d008ad9b536aa01736cab7ef9030da2650df958559" }, "downloads": -1, "filename": "num_fh-1.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9a0e01b3bbe9613f93c4c043151e8ece", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 33713, "upload_time": "2019-08-25T05:15:44", "url": "https://files.pythonhosted.org/packages/a2/1a/3a30ffdce0d287dea8957850e0b542fe061894841a053f49b2ed15828a15/num_fh-1.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "68c49bb0b1e6b64a340fc82eaab1d232", "sha256": "e938d0f3b982d5a52cfbe62b3be5379fefb47813f186b278809ca53a3f333b65" }, "downloads": -1, "filename": "num_fh-1.1.1.tar.gz", "has_sig": false, "md5_digest": "68c49bb0b1e6b64a340fc82eaab1d232", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23020, "upload_time": "2019-08-25T05:15:45", "url": "https://files.pythonhosted.org/packages/a1/9d/4ae9fbfeb52a701346e80d8b9df1a595f6d9fa17ded0a725c2878ccc8ffd/num_fh-1.1.1.tar.gz" } ] }