{ "info": { "author": "MeaningCloud", "author_email": "support@meaningcloud.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: Information Technology", "Intended Audience :: Science/Research", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering", "Topic :: Scientific/Engineering :: Artificial Intelligence", "Topic :: Scientific/Engineering :: Information Analysis", "Topic :: Text Processing", "Topic :: Text Processing :: General", "Topic :: Text Processing :: Linguistic" ], "description": "=======================\nMeaningCloud for Python\n=======================\n\nThis is MeaningCloud's official Python client, designed to enable you to use MeaningCloud's services easily from your own applications.\n\nMeaningCloud\n============\n\nMeaningCloud is a cloud-based text analytics service that through APIs allows you extract meaning from all kind of unstructured content: social conversation, articles, documents... You can check our demos here: https://www.meaningcloud.com/demos\n\nThe different APIs provide easy access to many NLP tasks such as automatic classification, sentiment analysis, topic extraction, etc. To be able to use the service you just have to log into MeaningCloud (by registering or using other services to log in: https://www.meaningcloud.com/developer/login), and you will receive a license key associated to a basic Free plan.\n\nYou can read more about the plans and the features available `here `_.\n\n\nGetting started\n===============\n\nInstallation\n------------\n\nYou can load meaningcloud-python into your project by using::\n\n pip install MeaningCloud-python\n\n\nYou can also clone the code and type the following on your shell::\n\n python setup.py install\n\n\nConfiguration\n-------------\n\nThe only thing you need to start using MeaningCloud's APIs is to log into MeaningCloud (by registering or using other services to log in). Once you've done that, you will be given a license key (https://www.meaningcloud.com/developer/account/subscription). Copy it and paste it in the corresponding place in the code, select the API you want to use and the parameters you want to use, and that's it.\n\nYou can find all the technical documentation about the APIs in the `API section `_ of the website.\n\nAnd we are always available at support@meaningcloud.com\n\nFunctionality\n-------------\n\nThis SDK currently contains the following:\n\n* **Request**: manages requests to any of MeaningCloud's APIS. It can also be used to directly generate requests without using specific classes .\n - **LanguageRequest**: models a request to MeaningCloud Language Identification API.\n - **TopicsRequest**: models a request to MeaningCloud TopicsExtraction API.\n - **ClassRequest**: models a request to MeaningCloud Text Classification API.\n - **SentimentRequest**: models a request to MeaningCloud Sentiment Analysis API.\n - **ParserRequest**: models a request to Meaningcloud Lemmatization, PoS and Parsing API.\n* **Response**: models a generic response from the MeaningCloud API.\n - **TopicsResponse**: models a response from the Topic Extraction API, providing auxiliary functions to work with the response, extracting the different types of topics and some of the most used fields in them.\n - **ClassResponse**: models a response from the Text Classification API, providing auxiliary functions to work with the response and extract the different fields in each category.\n - **SentimentResponse**: models a response from the Sentiment Analysis API, providing auxiliary functions to work with the response and extract the sentiment detected at different levels and for different elements.\n - **LanguageResponse**: models a response from the Language Identification API, providing auxiliary functions to work with the response and extract the sentiment detected at different levels and for different elements.\n - **ParserResponse**: models a response from the Lemmatization, PoS and Parsing API, providing auxiliary functions to work with the response and extract the lemmatization and PoS tagging of the text provided.\n\nUsage\n-----\n\nThis is an example on how to use this client (also included in the _example_ folder)::\n\n #! /usr/bin/env python\n\n # Created by MeaningCloud Support Team\n # Date: 26/02/18\n\n import sys\n import meaningcloud\n\n # @param model str - Name of the model to use. Example: \"IAB_en\" by default = \"IPTC_en\"\n model = 'IAB_en'\n\n # @param license_key - Your license key (found in the subscription section in https://www.meaningcloud.com/developer/)\n license_key = ''\n\n # @param text - Text to use for different API calls\n text = 'London is a very nice city but I also love Madrid.'\n\n\n\n\n try:\n # We are going to make a request to the Topics Extraction API\n topics_response = meaningcloud.TopicsResponse(meaningcloud.TopicsRequest(license_key, txt=text, lang='en', topicType='e').sendReq())\n\n # If there are no errors in the request, we print the output\n if (topics_response.isSuccessful()):\n print(\"\\nThe request to 'Topics Extraction' finished successfully!\\n\")\n\n entities = topics_response.getEntities()\n if (entities):\n print(\"\\tEntities detected (\" + str(len(entities)) + \"):\\n\")\n for entity in entities:\n print(\"\\t\\t\" + topics_response.getTopicForm(entity) + ' --> ' + topics_response.getTypeLastNode(topics_response.getOntoType(entity)) + \"\\n\")\n\n else:\n print(\"\\nOh no! There was the following error: \" + topics_response.getStatusMsg() + \"\\n\")\n else:\n if(topics_response.getResponse() is None):\n print(\"\\nOh no! The request sent did not return a Json\\n\")\n else:\n print(\"\\nOh no! There was the following error: \" + topics_response.getStatusMsg() + \"\\n\")\n\n\n\n #CLASS API CALL\n #class_response = meaningcloud.ClassResponse(meaningcloud.ClassRequest(license_key, txt=text, model=model).sendReq())\n\n\n #SENTIMENT API CALL\n #sentiment_response = meaningcloud.SentimentResponse(meaningcloud.SentimentRequest(license_key, lang='en', txt=text, txtf='plain').sendReq())\n\n\n #GENERIC API CALL\n #generic = meaningcloud.Request(url=\"url_of_specific_API\",key=key)\n #generic.addParam('parameter','value')\n #generic_result = generic.sendRequest()\n #generic_response = meaningcloud.Response(generic_result)\n\n\n #We are going to make a request to the Language Identification API\n lang_response = meaningcloud.LanguageResponse(meaningcloud.LanguageRequest(license_key, txt=text).sendReq())\n\n\n #If there are no errors in the request, we will use the language detected to make a request to Sentiment and Topics\n if(lang_response.isSuccessful()):\n print(\"\\nThe request to 'Language Identification' finished successfully!\\n\")\n\n results = lang_response.getResults()\n if('language_list' in results.keys() and results['language_list']):\n language = results['language_list'][0]['language']\n print(\"\\tLanguage detected: \" + results['language_list'][0]['name'] + ' (' + language + \")\\n\")\n\n # We are going to make a request to the Lemmatization, PoS and Parsing API\n parser_response = meaningcloud.ParserResponse(\n meaningcloud.ParserRequest(license_key, txt=text, lang='en').sendReq())\n\n # If there are no errors in the request, print tokenization and lemmatization\n if parser_response.isSuccessful():\n print(\"\\nThe request to 'Lemmatization, PoS and Parsing' finished successfully!\\n\")\n lemmatization = parser_response.getLemmatization(True)\n print(\"\\tLemmatization and PoS Tagging:\\n\")\n for token, analyses in lemmatization.items():\n print(\"\\t\\tToken -->\", token)\n for analysis in analyses:\n print(\"\\t\\t\\tLemma -->\", analysis['lemma'])\n print(\"\\t\\t\\tPoS Tag -->\", analysis['pos'], \"\\n\")\n\n\n\n except ValueError:\n e = sys.exc_info()[0]\n print(\"\\nException: \" + str(e))\n\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/MeaningCloud/meaningcloud-python", "keywords": "nlp,MeaningCloud,text analytics", "license": "", "maintainer": "", "maintainer_email": "", "name": "MeaningCloud-python", "package_url": "https://pypi.org/project/MeaningCloud-python/", "platform": "", "project_url": "https://pypi.org/project/MeaningCloud-python/", "project_urls": { "Homepage": "https://github.com/MeaningCloud/meaningcloud-python" }, "release_url": "https://pypi.org/project/MeaningCloud-python/1.1.1/", "requires_dist": [ "requests[security]", "check-manifest; extra == 'dev'", "coverage; extra == 'test'" ], "requires_python": "", "summary": "Official Python SDK for MeaningCloud API", "version": "1.1.1" }, "last_serial": 4050164, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "4d97c47b86300488a25b136e92a093d2", "sha256": "0380a8a2bcb235ca0891265a80783945d64fa773ab805d640e31c50eb3ffb6e3" }, "downloads": -1, "filename": "MeaningCloud_python-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4d97c47b86300488a25b136e92a093d2", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11367, "upload_time": "2018-02-28T16:23:45", "url": "https://files.pythonhosted.org/packages/12/bc/d16aa8c809176d92a918ccf6d82120935b408750c9dbd308f033c665442a/MeaningCloud_python-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dcc45f12fc7ec0da2d02f41251db379d", "sha256": "b541c7465a017e28d43a05f7455d6a39f2245b613687594b5c8744c6a9159347" }, "downloads": -1, "filename": "MeaningCloud-python-1.0.0.tar.gz", "has_sig": false, "md5_digest": "dcc45f12fc7ec0da2d02f41251db379d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8177, "upload_time": "2018-02-28T16:23:46", "url": "https://files.pythonhosted.org/packages/f0/28/181cd47dd7ca486a99cd5c4ba08042c165486924353206c23a108e1485c1/MeaningCloud-python-1.0.0.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "c3d141983d9c2be8c8c0574f647387f5", "sha256": "ebfea3e5555a15e0ca8cc5aace9de91773ce21c51cb674d404ed96014cc51be8" }, "downloads": -1, "filename": "MeaningCloud_python-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c3d141983d9c2be8c8c0574f647387f5", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11759, "upload_time": "2018-03-14T11:45:14", "url": "https://files.pythonhosted.org/packages/fa/de/d22e55d3601666befe004c49064b72e2559fe9c08ccebdc2091dd80ca698/MeaningCloud_python-1.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "134a1b1f06843f28fb8a440ea7acec5c", "sha256": "3426f850a69b9464ae29c0625ab18d810c370e5f40f3ca0d64bf827aec8aa816" }, "downloads": -1, "filename": "MeaningCloud-python-1.0.2.tar.gz", "has_sig": false, "md5_digest": "134a1b1f06843f28fb8a440ea7acec5c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6684, "upload_time": "2018-03-14T11:45:19", "url": "https://files.pythonhosted.org/packages/1c/18/4808dee5e81bb2a58a5a4b429ff1247fd61a1d7bc73ace8c43de42508a16/MeaningCloud-python-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "d7f6062420cb47503dd9cd9ed04bf675", "sha256": "9f573f6e21d95c0d46145f830e175125ca441d427dca26a539e02430cf9debea" }, "downloads": -1, "filename": "MeaningCloud_python-1.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d7f6062420cb47503dd9cd9ed04bf675", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11758, "upload_time": "2018-03-15T10:34:20", "url": "https://files.pythonhosted.org/packages/ec/23/e7bdbcfc10b262ac00ca31bc330d2cad7e6cfbc66e5c5e84433b5715d47b/MeaningCloud_python-1.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d646c37ca661a9e4a8a58d054f932d80", "sha256": "3bf166fb6bbae82bdf9c7a580da5291347f4064b2b496f49098986a9a9f9d020" }, "downloads": -1, "filename": "MeaningCloud-python-1.0.3.tar.gz", "has_sig": false, "md5_digest": "d646c37ca661a9e4a8a58d054f932d80", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8517, "upload_time": "2018-03-15T10:34:21", "url": "https://files.pythonhosted.org/packages/82/f4/d0934719e377f066986e82dc7ba55239f4ffe6688bc914be3fd7791d590e/MeaningCloud-python-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "986a4c1cec962f248bc77400ab446428", "sha256": "74cd41fc0bb458874665186df677451dc49a26ba51fe3c11289462966200d814" }, "downloads": -1, "filename": "MeaningCloud_python-1.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "986a4c1cec962f248bc77400ab446428", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 15951, "upload_time": "2018-03-15T10:42:33", "url": "https://files.pythonhosted.org/packages/41/14/1eb7a318dc05f135bb3e80c7c848c4b9f436a31186747b6542c840bb6d34/MeaningCloud_python-1.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f19dd567fdd55d9d3889c568f421228d", "sha256": "af1775e5279c19c12da8b9f4db014ebb66c7b87462a63be4a87544ee11eadc05" }, "downloads": -1, "filename": "MeaningCloud-python-1.0.4.tar.gz", "has_sig": false, "md5_digest": "f19dd567fdd55d9d3889c568f421228d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9052, "upload_time": "2018-03-15T10:42:34", "url": "https://files.pythonhosted.org/packages/72/58/ce8c74ad8c0d1b90747cfa6308292550101c95e8e5f8b1f6a02e257f5dd7/MeaningCloud-python-1.0.4.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "9fd3c4d0f11f147bdc932c23edfc5bd2", "sha256": "454f94c6f713c0171014c8fe8b105169dcc1d59f6fb93c0c1f596b21ed8cd7ac" }, "downloads": -1, "filename": "MeaningCloud_python-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9fd3c4d0f11f147bdc932c23edfc5bd2", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 17785, "upload_time": "2018-04-10T09:38:56", "url": "https://files.pythonhosted.org/packages/f3/c0/5b3dd20a12ced96bf7fdbe997072441e1f1e4ae2e5fc76f82d099414a6d4/MeaningCloud_python-1.1.0-py2.py3-none-any.whl" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "6be9a3ce1dcf4ccb8be972a3a772b60f", "sha256": "f46070fdc5ed3e8c4e399abef8f32bb2427c4819401cac068545d1d6bc9fd609" }, "downloads": -1, "filename": "MeaningCloud_python-1.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6be9a3ce1dcf4ccb8be972a3a772b60f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 17799, "upload_time": "2018-07-11T09:28:24", "url": "https://files.pythonhosted.org/packages/28/c6/deb6c9d113f94ec99116ec4017b333660ce54344734d29f0cb98fdf32945/MeaningCloud_python-1.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "30a3e9fed1f7ba658645b944123ce90d", "sha256": "8fdf8bbcac3a0c52d4cf10126792f97a08ea9f8377148383f929b976c239ee26" }, "downloads": -1, "filename": "MeaningCloud-python-1.1.1.tar.gz", "has_sig": false, "md5_digest": "30a3e9fed1f7ba658645b944123ce90d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10028, "upload_time": "2018-07-11T09:28:25", "url": "https://files.pythonhosted.org/packages/58/70/a60dc2db3a0ca63d4e97acb3c3e57bb16163f5a4b917947de7356ff9f6c6/MeaningCloud-python-1.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6be9a3ce1dcf4ccb8be972a3a772b60f", "sha256": "f46070fdc5ed3e8c4e399abef8f32bb2427c4819401cac068545d1d6bc9fd609" }, "downloads": -1, "filename": "MeaningCloud_python-1.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6be9a3ce1dcf4ccb8be972a3a772b60f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 17799, "upload_time": "2018-07-11T09:28:24", "url": "https://files.pythonhosted.org/packages/28/c6/deb6c9d113f94ec99116ec4017b333660ce54344734d29f0cb98fdf32945/MeaningCloud_python-1.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "30a3e9fed1f7ba658645b944123ce90d", "sha256": "8fdf8bbcac3a0c52d4cf10126792f97a08ea9f8377148383f929b976c239ee26" }, "downloads": -1, "filename": "MeaningCloud-python-1.1.1.tar.gz", "has_sig": false, "md5_digest": "30a3e9fed1f7ba658645b944123ce90d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10028, "upload_time": "2018-07-11T09:28:25", "url": "https://files.pythonhosted.org/packages/58/70/a60dc2db3a0ca63d4e97acb3c3e57bb16163f5a4b917947de7356ff9f6c6/MeaningCloud-python-1.1.1.tar.gz" } ] }