{ "info": { "author": "Henry Rosales", "author_email": "hrosmendez@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Education", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Build Tools" ], "description": "# wikitablewrapper\n\n\n**Install virtual ennvironment of python3**\n```sh\nsudo apt-get install curl\nsudo apt install python3-pip\nsudo apt install virtualenv\nvirtualenv env --python=python3\ncd env && source bin/activate\n```\n\n**Install dependencies**\n```sh\npip3 install simplejson\npip3 install xmltodict\n```\n\n**Install locally DBpedia Spotlight**\nUbuntu\n```sh\nsudo snap install docker\n```\nor Debian\n```sh\nwget https://download.docker.com/linux/debian/dists/jessie/pool/stable/amd64/docker-ce_17.03.0~ce-0~debian-jessie_amd64.deb\nsudo dpkg -i docker-ce_17.03.0~ce-0~debian-jessie_amd64.deb\n```\n\nSee if you have the image already in your computer\n```sh\nsudo docker image ls\n```\nif you don't have it, then run\n```sh\nsudo docker pull dbpedia/spotlight-english\nsudo docker run -d -p 2222:80 dbpedia/spotlight-english spotlight.sh\n```\n\nIf you have to stop it, see the CONTAINER ID, and then do it\n```sh\nsudo docker container ls\nsudo docker stop CONTAINER_ID\n```\ntest it\n> curl http://localhost:2222/rest/annotate -H \"Accept: application/json\" --data-urlencode \"text=Brazilian state-run giant oil company Petrobras signed a three-year technology and research cooperation agreement with oil service provider Halliburton.\" --data \"confidence=0.3\" --data \"support=20\"\n\n**To install this package, just run:**\n```sh\npip3 install -i https://test.pypi.org/simple/ wikitablewrapper\n```\n\n\n# How use it?\n\n\n```python\nwt = WikitableWrapper(20)\nwt.createHtmlFile = True\n\nwt.includeBabelfy = True\nwt.includeTagme = True\nwt.includeFremeNer = True\nwt.includeDBpediaSpotlightLocal = True\n\n# you can do, either\nwt.outputFolder=\"1Out\" # Optional\nwt.processJson(\"1Tablas/1003231_2.json\")\n\n# or\nwt.ProcessFolderOfJson(\"100Tablas\",\"100Out\")\n```\n\nSee below an example of how use the Benchamrk class\n\n```python\nwb = WikitableBenchmark()\ndSys = {\"Babelfy\":\"_babelfy\", \"TagME\":\"_tagme\", \"FremeNER\":\"_fremener\", \"DBpedia Spotlight\":\"_dbpst\"}\nwb.MeasureF1_and_Summarize(\"100Tablas\",\"100Out\", dSys, \"100Benchmark\")\n```\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://gitlab.com/hrosmendez/wikitablewrapper", "keywords": "NIF parser table NLP", "license": "", "maintainer": "", "maintainer_email": "", "name": "wikitablewrapper", "package_url": "https://pypi.org/project/wikitablewrapper/", "platform": "", "project_url": "https://pypi.org/project/wikitablewrapper/", "project_urls": { "Homepage": "https://gitlab.com/hrosmendez/wikitablewrapper" }, "release_url": "https://pypi.org/project/wikitablewrapper/0.2.6/", "requires_dist": [ "check-manifest ; extra == 'dev'", "coverage ; extra == 'test'" ], "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "summary": "Parsing, Proccesing, Annotating and Storing WikiTables in Json", "version": "0.2.6" }, "last_serial": 5796312, "releases": { "0.2.6": [ { "comment_text": "", "digests": { "md5": "a11dc3118323995e2f36f67dfe7c4002", "sha256": "96c6169870ec77b7acd3ffe49768ac37ada6db89922c988379e89e2621014f3a" }, "downloads": -1, "filename": "wikitablewrapper-0.2.6-py3-none-any.whl", "has_sig": false, "md5_digest": "a11dc3118323995e2f36f67dfe7c4002", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 33310, "upload_time": "2019-09-07T14:31:48", "url": "https://files.pythonhosted.org/packages/20/a6/5c860d770b9abc1597a3ec846ad564338499f18222608ff38473c3a70486/wikitablewrapper-0.2.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "30952b700ca720e8211b96efe486204e", "sha256": "7f61dd92278b81b3d149b6013f5ef3fe1347c44517b41801c89542bcae79b2f9" }, "downloads": -1, "filename": "wikitablewrapper-0.2.6.tar.gz", "has_sig": false, "md5_digest": "30952b700ca720e8211b96efe486204e", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 33632, "upload_time": "2019-09-07T14:31:50", "url": "https://files.pythonhosted.org/packages/44/bb/6035d8d3b5db929bd7b09682f43c3ddc39893269d923af8e1cc156163e34/wikitablewrapper-0.2.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a11dc3118323995e2f36f67dfe7c4002", "sha256": "96c6169870ec77b7acd3ffe49768ac37ada6db89922c988379e89e2621014f3a" }, "downloads": -1, "filename": "wikitablewrapper-0.2.6-py3-none-any.whl", "has_sig": false, "md5_digest": "a11dc3118323995e2f36f67dfe7c4002", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 33310, "upload_time": "2019-09-07T14:31:48", "url": "https://files.pythonhosted.org/packages/20/a6/5c860d770b9abc1597a3ec846ad564338499f18222608ff38473c3a70486/wikitablewrapper-0.2.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "30952b700ca720e8211b96efe486204e", "sha256": "7f61dd92278b81b3d149b6013f5ef3fe1347c44517b41801c89542bcae79b2f9" }, "downloads": -1, "filename": "wikitablewrapper-0.2.6.tar.gz", "has_sig": false, "md5_digest": "30952b700ca720e8211b96efe486204e", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 33632, "upload_time": "2019-09-07T14:31:50", "url": "https://files.pythonhosted.org/packages/44/bb/6035d8d3b5db929bd7b09682f43c3ddc39893269d923af8e1cc156163e34/wikitablewrapper-0.2.6.tar.gz" } ] }