{ "info": { "author": "Fabian Grimme", "author_email": "fbngrm@googlemail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: POSIX", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Text Processing :: Linguistic" ], "description": "BabelFy API Client\n======================\n\nPython `BabelFy `_ entity tagger. Can be used as a library or command-line tool. Compatible with\nboth Python 2.7 as well as Python 3.\n\nInstallation\n---------------\n\n::\n\n pip install babelpy\n\nor clone this github repository and run ``python setup.py install``, optionally prepend the commands with ``sudo`` for\nglobal installation.\n\nUsage\n-------\n\nAdd your Babelfy API Key to the config file or provide it as an argument.\n\n\nUse as command-line tool\n~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n babelpy [-h] [-t | -tf ] [-e] [-ae] [-m] [-am] [-p] [-ex]\n\n**Options**::\n\n -h, --help show a help message and exit\n -key --api-key BabelFy API key\n -t --text text to be annotated by BabelFy API\n -tf --text-file path to the file containing the input text\n -e, --entities get entity data\n -ae --all-entities get entity and non-entity data\n -m --merged-entities get merged entities only\n -am --all-merged-entities get all merged entities\n -p --print dump all babelfy data to stdout\n -ex --export filename of the output file\n\n**Example**::\n\n babelpy -tf ~/data/fashion.txt -am -ex ~/data/fashion.json\n\nSee ``babelpy -h`` for help.\n\nUse as a library\n~~~~~~~~~~~~~~~~~~~~\n\n.. code-block:: python\n\n\n from babelfy import BabelfyClient\n\n\n # Instantiate BabelFy client.\n params = dict()\n params['lang'] = LANG\n babel_client = BabelfyClient(API_KEY, params)\n\n # Babelfy sentence.\n babel_client.babelfy(TEXT_TO_BE_BABELFIED)\n\n # Get entity data.\n print(babel_client.entities)\n\n # Get entity and non-entity data.\n print(babel_client.all_entities)\n\n # Get merged entities only.\n print(babel_client.merged_entities)\n\n # Get all merged entities.\n babel_client.all_merged_entities\n\nRun Tests with ``python tests/run_tests.py``\n\nLicense\n-----------\n\nGNU - GPL 3.0\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/fbngrm/babelpy", "keywords": "nlp computational_linguistics entities wikipedia dbpedia linguistics", "license": "GPL", "maintainer": "", "maintainer_email": "", "name": "BabelPy", "package_url": "https://pypi.org/project/BabelPy/", "platform": "", "project_url": "https://pypi.org/project/BabelPy/", "project_urls": { "Homepage": "https://github.com/fbngrm/babelpy" }, "release_url": "https://pypi.org/project/BabelPy/1.0.1/", "requires_dist": null, "requires_python": "", "summary": "BabelFy API Client", "version": "1.0.1" }, "last_serial": 3410140, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "1b285e846d99538e39851abcda1791fe", "sha256": "669910e215ade96718df43b844ab3ea29f7eb3d26ef92c99b065c07ff27c03a9" }, "downloads": -1, "filename": "BabelPy-1.0.tar.gz", "has_sig": false, "md5_digest": "1b285e846d99538e39851abcda1791fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8027, "upload_time": "2017-12-12T12:13:17", "url": "https://files.pythonhosted.org/packages/48/3b/2caa7466fac1b3f71d0b3c89329f16e266564d17c8aec9f8da97b2c9f66b/BabelPy-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "9f36c7d8ef68cf14c10884dcb704f041", "sha256": "e2a11aebfa70049f1cd4460623af33539f3841a12e2a4338a4424e45acc23e38" }, "downloads": -1, "filename": "BabelPy-1.0.1.tar.gz", "has_sig": false, "md5_digest": "9f36c7d8ef68cf14c10884dcb704f041", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8035, "upload_time": "2017-12-12T12:25:04", "url": "https://files.pythonhosted.org/packages/09/03/93430ae2c3011b9eb0ae179d58612be8e094e04e920686a1ffb7740e27ce/BabelPy-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9f36c7d8ef68cf14c10884dcb704f041", "sha256": "e2a11aebfa70049f1cd4460623af33539f3841a12e2a4338a4424e45acc23e38" }, "downloads": -1, "filename": "BabelPy-1.0.1.tar.gz", "has_sig": false, "md5_digest": "9f36c7d8ef68cf14c10884dcb704f041", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8035, "upload_time": "2017-12-12T12:25:04", "url": "https://files.pythonhosted.org/packages/09/03/93430ae2c3011b9eb0ae179d58612be8e094e04e920686a1ffb7740e27ce/BabelPy-1.0.1.tar.gz" } ] }