{
"info": {
"author": "tell-k",
"author_email": "ffk2005@gmail.com",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries"
],
"description": "Goo labs API client for python. And provide some command line tools.\n\n|travis| |coveralls| |version| |license| |requires|\n\n.. contents::\n :local:\n :depth: 1\n\nFeatures\n========\n* Provide API Client for `Goo labs API `_.\n* Provide some command line tools.\n\nRequired\n========\n* You need to get **app id** at `Goo labs website `_ in order to use this library.\n\nSet up\n======\n\nMake environment with pip::\n\n $ pip install goolabs\n\nFor Max OS X user. If you want to use command line tool only, you can install from homebrew::\n\n $ brew install goolabs\n\nUsage\n=====\n\nmorph\n--------------------\n\nMorphological analysis for Japanese.\n\nSee also https://labs.goo.ne.jp/api/2015/1302/\n\n.. code-block:: python\n\n from goolabs import GoolabsAPI\n\n app_id = \"xxxxxxxxxxxxxxxxxxxx\"\n api = GoolabsAPI(app_id)\n\n # See sample response below.\n sample_response = api.morph(sentence=u\"\u65e5\u672c\u8a9e\u3092\u5206\u6790\u3057\u307e\u3059\u3002\")\n\n # All the arguments of this func.\n api.morph(\n request_id=\"morph-req001\",\n sentence=u\"\u65e5\u672c\u8a9e\u3092\u5206\u6790\u3057\u307e\u3059\u3002\",\n info_filter=\"form|pos|read\",\n pos_filter=u\"\u540d\u8a5e|\u683c\u52a9\u8a5e|\u52d5\u8a5e\u6d3b\u7528\u8a9e\u5c3e|\u52d5\u8a5e\u63a5\u5c3e\u8f9e|\u53e5\u70b9\",\n )\n\n # Possible parts of speech, please refer to the following URL.\n # https://labs.goo.ne.jp/api/2015/1158/\n\nSample response.\n\n.. code-block:: json\n\n {\n \"word_list\": [\n [\n [ \"\u65e5\u672c\u8a9e\", \"\u540d\u8a5e\", \"\u30cb\u30db\u30f3\u30b4\" ],\n [ \"\u3092\", \"\u683c\u52a9\u8a5e\", \"\u30f2\" ],\n [ \"\u5206\u6790\", \"\u540d\u8a5e\", \"\u30d6\u30f3\u30bb\u30ad\" ],\n [ \"\u3057\", \"\u52d5\u8a5e\u6d3b\u7528\u8a9e\u5c3e\", \"\u30b7\" ],\n [ \"\u307e\u3059\", \"\u52d5\u8a5e\u63a5\u5c3e\u8f9e\", \"\u30de\u30b9\" ],\n [ \"\u3002\", \"\u53e5\u70b9\", \"\uff04\" ]\n ]\n ],\n \"request_id\": \"labs.goo.ne.jp\\t1419262824\\t0\"\n }\n\n\nsimilarity\n--------------------\n\nScoring the similarity of two words.\n\nSee also https://labs.goo.ne.jp/api/2015/1295/\n\n.. code-block:: python\n\n from goolabs import GoolabsAPI\n\n app_id = \"xxxxxxxxxxxxxxxxxxxx\"\n api = GoolabsAPI(app_id)\n\n # See sample response below.\n ret = api.similarity(query_pair=[\"windows\", u\"\u30a6\u30a3\u30f3\u30c9\u30a6\u30ba\"])\n\n # All the arguments of this func.\n api.similarity(\n request_id=\"similarity-req001\",\n query_pair=[\"windows\", u\"\u30a6\u30a3\u30f3\u30c9\u30a6\u30ba\"]\n )\n\nSample response.\n\n.. code-block:: json\n\n {\n \"score\": 0.7679829666474438,\n \"request_id\": \"labs.goo.ne.jp\\t1419263621\\t0\"\n }\n\n\nhiragana\n--------------------\n\nConvert the Japanese to Hiragana or Katakana.\n\nSee also https://labs.goo.ne.jp/api/2015/1293/\n\n.. code-block:: python\n\n from goolabs import GoolabsAPI\n\n app_id = \"xxxxxxxxxxxxxxxxxxxx\"\n api = GoolabsAPI(app_id)\n\n # See sample response below.\n ret = api.hiragana(sentence=u\"\u6f22\u5b57\u304c\u6df7\u3056\u3063\u3066\u3044\u308b\u6587\u7ae0\", output_type=\"hiragana\")\n\n # All the arguments of this func.\n api.hiragana(\n request_id=\"hiragana-req001\",\n sentence=u\"\u6f22\u5b57\u304c\u6df7\u3056\u3063\u3066\u3044\u308b\u6587\u7ae0\",\n output_type=\"hiragana\" # hiragana or katakana\n )\n\nSample response.\n\n.. code-block:: json\n\n {\n \"output_type\": \"hiragana\",\n \"converted\": \"\u304b\u3093\u3058\u304c \u307e\u3056\u3063\u3066\u3044\u308b \u3076\u3093\u3057\u3087\u3046\",\n \"request_id\": \"labs.goo.ne.jp\\t1419263773\\t0\"\n }\n\n\nentitiy\n--------------------\n\nExtract the unique representation from sentence.\n\nsee also https://labs.goo.ne.jp/api/2015/1299/.\n\n.. code-block:: python\n\n from goolabs import GoolabsAPI\n\n app_id = \"xxxxxxxxxxxxxxxxxxxx\"\n api = GoolabsAPI(app_id)\n\n # See sample response below.\n ret = api.entity(sentence=u\"\u9234\u6728\u3055\u3093\u304c\u304d\u3087\u3046\u306e9\u664230\u5206\u306b\u6a2a\u6d5c\u306b\u884c\u304d\u307e\u3059\u3002\")\n\n # All the arguments of this func.\n api.entity(\n request_id=\"entity-req001\",\n sentence=u\"\u9234\u6728\u3055\u3093\u304c\u304d\u3087\u3046\u306e9\u664230\u5206\u306b\u6a2a\u6d5c\u306b\u884c\u304d\u307e\u3059\u3002\"\n class_filter=u\"ART|ORG|PSN|LOC|DAT|TIM\"\n )\n\nSample response.\n\n.. code-block:: json\n\n {\n \"ne_list\": [\n [ \"\u9234\u6728\", \"PSN\" ],\n [ \"\u304d\u3087\u3046\", \"DAT\" ],\n [ \"9\u664230\u5206\", \"TIM\" ],\n [ \"\u6a2a\u6d5c\", \"LOC\" ]\n ],\n \"request_id\": \"labs.goo.ne.jp\\t1419264063\\t0\"\n }\n\nshortsum\n--------------------\n\nSummarizes the sent-in Japanese reviews into a short summary.\n\nsee also https://labs.goo.ne.jp/api/2015/1305/\n\n.. code-block:: python\n\n from goolabs import GoolabsAPI\n\n app_id = \"xxxxxxxxxxxxxxxxxxxx\"\n api = GoolabsAPI(app_id)\n\n # See sample response below.\n ret = api.shortsum(\n review_list=[\n \"\u6a5f\u80fd\u306f\u9650\u3089\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u5fc5\u8981\u5341\u5206\u3067\u3057\u3087\u3046\u3002\",\n \"\u4fa1\u683c\u3082\u5b89\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u304a\u5e97\u306e\u5bfe\u5fdc\u3082\u3088\u304b\u3063\u305f\u3067\u3059\u3002\",\n \"\u3053\u306e\u30b7\u30ea\u30fc\u30ba\u3092\u8cb7\u3046\u306e3\u53f0\u76ee\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u9ed2\u306e\u767a\u8272\u304c\u7dba\u9e97\u3067\u3059\u3002\"\n \"\u5024\u6bb5\u3092\u8003\u3048\u308c\u3070\u5341\u5206\u3059\u304e\u308b\u6027\u80fd\u3067\",\n ]\n )\n\n # All the arguments of this func.\n api.shortsum(\n request_id=\"shortsum-req001\",\n review_list=[\n \"\u6a5f\u80fd\u306f\u9650\u3089\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u5fc5\u8981\u5341\u5206\u3067\u3057\u3087\u3046\u3002\",\n \"\u4fa1\u683c\u3082\u5b89\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u304a\u5e97\u306e\u5bfe\u5fdc\u3082\u3088\u304b\u3063\u305f\u3067\u3059\u3002\",\n \"\u3053\u306e\u30b7\u30ea\u30fc\u30ba\u3092\u8cb7\u3046\u306e3\u53f0\u76ee\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u9ed2\u306e\u767a\u8272\u304c\u7dba\u9e97\u3067\u3059\u3002\"\n \"\u5024\u6bb5\u3092\u8003\u3048\u308c\u3070\u5341\u5206\u3059\u304e\u308b\u6027\u80fd\u3067\",\n ],\n length=60 # 60 or 120 or 180\n )\n\nSample response.\n\n.. code-block:: json\n\n {\n \"length\": 60,\n \"summary\": \"\u9ed2\u306e\u767a\u8272\u304c\u7dba\u9e97\u3067\u3059\u3002\u6a5f\u80fd\u306f\u9650\u3089\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u5fc5\u8981\u5341\u5206\u3067\u3057\u3087\u3046\u3002\u4fa1\u683c\u3082\u5b89\u3044\u3068\u601d\u3044\u307e\u3059\u3002\",\n \"request_id\": \"shortsum-req001\"\n }\n\nkeyword\n--------------------\n\nExtracts \"Japanese keywords\", such as person names, location names, and so on,\nfrom an input document consisting of a title and a body.\n\nsee also https://labs.goo.ne.jp/api/2015/1325/\n\n.. code-block:: python\n\n from goolabs import GoolabsAPI\n\n app_id = \"xxxxxxxxxxxxxxxxxxxx\"\n api = GoolabsAPI(app_id)\n\n # See sample response below.\n ret = api.keyword(\n title=\"\u300c\u548c\u300d\u3092\u30b3\u30f3\u30bb\u30d7\u30c8\u3068\u3059\u308b \u533f\u540d\u6027\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d3\u30b9\u300cMURA\u300d\",\n body=\"NTT\u30ec\u30be\u30ca\u30f3\u30c8\u682a\u5f0f\u4f1a\u793e\uff08\u672c\u793e\uff1a\u6771\u4eac\u90fd\u6e2f\u533a\u3001\u4ee3\u8868\u53d6\u7de0\u5f79\u793e\u9577\uff1a\u82e5\u4e95 \u660c\u5b8f\",\n )\n\n # All the arguments of this func.\n api.keyword(\n request_id=\"keyword-req001\",\n title=\"\u300c\u548c\u300d\u3092\u30b3\u30f3\u30bb\u30d7\u30c8\u3068\u3059\u308b \u533f\u540d\u6027\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d3\u30b9\u300cMURA\u300d\",\n body=\"NTT\u30ec\u30be\u30ca\u30f3\u30c8\u682a\u5f0f\u4f1a\u793e\uff08\u672c\u793e\uff1a\u6771\u4eac\u90fd\u6e2f\u533a\u3001\u4ee3\u8868\u53d6\u7de0\u5f79\u793e\u9577\uff1a\u82e5\u4e95 \u660c\u5b8f\",\n max_num=10,\n forcus=\"ORG\",\n )\n\nSample response.\n\n.. code-block:: json\n\n {\n \"keywords\": [\n {\"\u548c\": 0.5893},\n {\"\u30b3\u30f3\u30bb\u30d7\u30c8\": 0.5893},\n {\"\u533f\u540d\u6027\": 0.5893},\n {\"\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d3\u30b9\": 0.5893},\n {\"MURA\": 0.5893},\n {\"NTT\u30ec \u30be\u30ca\u30f3\u30c8\u682a\u5f0f\u4f1a\u793e\": 0.35},\n {\"\u672c\u793e\": 0.35}, {\"\u6771\u4eac\u90fd\u6e2f\u533a\": 0.35},\n {\"\u4ee3\u8868\u53d6\u7de0\u5f79\u793e\u9577\": 0.35},\n {\"\u82e5\u4e95\": 0.35}\n ],\n \"request_id\": \"labs.goo.ne.jp\\t1457928295\\t0\"\n }\n\nchrono\n--------------------\n\nExtract expression expressing date and time and normalize its value\n\nsee also https://labs.goo.ne.jp/api/jp/time-normalization\n\n.. code-block:: python\n\n from goolabs import GoolabsAPI\n\n app_id = \"xxxxxxxxxxxxxxxxxxxx\"\n api = GoolabsAPI(app_id)\n\n # See sample response below.\n ret = api.chrono(\n sentence=\"\u4eca\u65e5\u306e10\u6642\u534a\u306b\u51fa\u304b\u3051\u307e\u3059\u3002\",\n )\n\n # All the arguments of this func.\n api.chrono(\n request_id=\"chrono-req001\",\n sentence=\"\u4eca\u65e5\u306e10\u6642\u534a\u306b\u51fa\u304b\u3051\u307e\u3059\u3002\",\n doc_time=\"2016-04-01T09:00:00\",\n )\n\nSample response.\n\n.. code-block:: json\n\n {\"request_id\":\"record007\",,\"datetime_list\":}\n\n {\n \"datetime_list\": [\n [\"\u4eca\u65e5\", \"2016-04-01\"],\n [\"10\u6642\u534a\", \"2016-04-01T10:30\"]\n ],\n \"doc_time\":\"2016-04-01T09:00:00\",\n \"request_id\": \"labs.goo.ne.jp\\t1457928295\\t0\"\n }\n\nOther tips\n--------------------\n\nYou can see the HTTP response you called right before.\n\n.. code-block:: python\n\n api = GoolabsAPI(app_id)\n api.morph(sentence=u\"\u65e5\u672c\u8a9e\u3092\u5206\u6790\u3057\u307e\u3059\u3002\")\n\n # api.response is a instance of \"requests.Response\".\n print(api.response.status_code) # => 200\n print(api.response.json()) # => raw json data.\n\nCommand line tool\n=================\n\n.. code-block:: bash\n\n $ goolabs\n Usage: goolabs [OPTIONS] COMMAND [ARGS]...\n\n Command line tools for Goo labs API(https://labs.goo.ne.jp/api/).\n\n Options:\n --version Show the version and exit.\n --help Show this message and exit.\n\n Commands:\n chrono Extract expression expressing date and time...\n entity Extract unique representation from sentence.\n hiragana Convert the Japanese to Hiragana or Katakana.\n keyword Extract \"keywords\" from an input document.\n morph Morphological analysis for Japanese.\n shortsum Summarize reviews into a short summary.\n similarity Scoring the similarity of two words.\n\n\nSet environment variable GOOLABS_APP_ID\n----------------------------------------\n\nTo use this cli, it is recommended to set the environment variable GOOLABS_APP_ID.\n\n.. code-block:: bash\n\n # write your shell setting files(ex ~/.bashrc).\n export GOOLABS_APP_ID=xxxxxxxxxxxxxxx\n\nYou may pass the App id every time you use it, but it's not recommended.\n\n.. code-block:: bash\n\n $ goolabs morph --app-id xxxxx \u65e5\u672c\u8a9e\u3092\u5206\u6790\u3057\u307e\u3059\u3002\n\n\nmorph\n--------------------\n\n.. code-block:: bash\n\n $ goolabs morph --help\n Usage: goolabs morph [OPTIONS] [SENTENCE]\n\n Morphological analysis for Japanese.\n\n Options:\n -a, --app-id TEXT\n -r, --request-id TEXT\n -i, --info-filter TEXT form,pos,read\n -p, --pos-filter TEXT \u540d\u8a5e,\u53e5\u70b9,\u683c\u52a9\u8a5e..etc\n -f, --file FILENAME\n -j, --json / --no-json\n --help Show this message and exit.\n\nSample usage.\n\n.. code-block:: bash\n\n $ goolabs morph \u65e5\u672c\u8a9e\u3092\u5206\u6790\u3057\u307e\u3059\u3002\n \u65e5\u672c\u8a9e,\u540d\u8a5e,\u30cb\u30db\u30f3\u30b4\n \u3092,\u683c\u52a9\u8a5e,\u30f2\n \u5206\u6790,\u540d\u8a5e,\u30d6\u30f3\u30bb\u30ad\n \u3057,\u52d5\u8a5e\u6d3b\u7528\u8a9e\u5c3e,\u30b7\n \u307e\u3059,\u52d5\u8a5e\u63a5\u5c3e\u8f9e,\u30de\u30b9\n \u3002,\u53e5\u70b9,\uff04\n\n # more option\n $ goolabs morph --info-filter form,pos,read --pos-filter \u540d\u8a5e,\u53e5\u70b9 \u65e5\u672c\u8a9e\u3092\u5206\u6790\u3057\u307e\u3059\u3002\n\n # specify a file as an alternative to the sentence\n $ goolabs morph --file sentence.txt\n\n # get raw json\n $ goolabs morph --json --request-id req001 \u65e5\u672c\u8a9e\n {\n \"word_list\": [\n [\n [\n \"\u65e5\u672c\u8a9e\",\n \"\u540d\u8a5e\",\n \"\u30cb\u30db\u30f3\u30b4\"\n ]\n ]\n ],\n \"request_id\": \"req001\"\n }\n\nsimilarity\n--------------------\n\n.. code-block:: bash\n\n $ goolabs similarity --help\n Usage: goolabs similarity [OPTIONS] QUERY_PAIR...\n\n Scoring the similarity of two words.\n\n Options:\n -a, --app-id TEXT\n -r, --request-id TEXT\n -j, --json / --no-json\n --help Show this message and exit.\n\nSample usage.\n\n.. code-block:: bash\n\n $ goolabs similarity \u30a6\u30a3\u30f3\u30c9\u30a6\u30ba windows\n 0.767982966647\n\n # get raw json.\n $ goolabs similarity --json --request-id req002 \u30a6\u30a3\u30f3\u30c9\u30a6\u30ba windows\n {\n \"score\": 0.7679829666474438,\n \"request_id\": \"req002\"\n }\n\nhiragana\n--------------------\n\n.. code-block:: bash\n\n $ goolabs hiragana --help\n Usage: goolabs hiragana [OPTIONS] [SENTENCE]\n\n Convert the Japanese to Hiragana or Katakana.\n\n Options:\n -o, --output-type [hiragana|katakana]\n -a, --app-id TEXT\n -r, --request-id TEXT\n -f, --file FILENAME\n -j, --json / --no-json\n --help Show this message and exit.\n\nSample usage.\n\n.. code-block:: bash\n\n $ goolabs hiragana \u65e5\u672c\u8a9e\n \u306b\u307b\u3093\u3054\n\n # convert to Katakana\n $ goolabs hiragana --output-type katakana \u65e5\u672c\u8a9e\n \u30cb\u30db\u30f3\u30b4\n\n # specify a file as an alternative to the sentence\n $ goolabs hiragana --file sentence.txt\n\n # get raw json\n $ goolabs hiragana --json --request-id req003 \u65e5\u672c\u8a9e\n {\n \"output_type\": \"hiragana\",\n \"converted\": \"\u306b\u307b\u3093\u3054\",\n \"request_id\": \"req003\"\n }\n\nentity\n--------------------\n\n.. code-block:: bash\n\n $ goolabs entity --help\n Usage: goolabs entity [OPTIONS] [SENTENCE]\n\n Extract unique representation from sentence.\n\n Options:\n -c, --class-filter TEXT ART,ORG,PSN,LOC,DAT\n -a, --app-id TEXT\n -r, --request-id TEXT\n -f, --file FILENAME\n -j, --json / --no-json\n --help Show this message and exit.\n\nSample usage.\n\n.. code-block:: bash\n\n $ goolabs entity \u4f50\u85e4\u6c0f\u30012014\u5e7412\u6708\u306b\u8db3\u306e\u5c0f\u6307\u9aa8\u6298\u3057\u8c4a\u6d32\u306e\u75c5\u9662\u3078\n \u4f50\u85e4,PSN\n 2014\u5e7412\u6708,DAT\n \u8c4a\u6d32,LOC\n\n # more option\n $ goolabs entity --class-filter PSN,LOC \u4f50\u85e4\u6c0f\u30012014\u5e7412\u6708\u306b\u8db3\u306e\u5c0f\u6307\u9aa8\u6298\u3057\u8c4a\u6d32\u306e\u75c5\u9662\u3078\n\n # specify a file as an alternative to the sentence\n $ goolabs entity --file sentence.txt\n\n # get raw json\n $ goolabs entity --json --request-id req004 \u4f50\u85e4\u6c0f\n {\n \"ne_list\": [\n [\n \"\u4f50\u85e4\",\n \"PSN\"\n ]\n ],\n \"request_id\": \"req004\"\n }\n\nshortsum\n--------------------\n\n.. code-block:: bash\n\n $ goolabs shortsum --help\n Usage: goolabs shortsum [OPTIONS] [REVIEW]\n\n Summarize reviews into a short summary.\n\n Options:\n -a, --app-id TEXT\n -l, --length [60|120|180]\n -r, --request-id TEXT\n -f, --file FILENAME\n -j, --json / --no-json\n --help Show this message and exit.\n\nSample usage.\n\n.. code-block:: bash\n\n $ goolabs shortsum \u3053\u306e\u30b7\u30ea\u30fc\u30ba\u3092\u8cb7\u3046\u306e3\u53f0\u76ee\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u9ed2\u306e\u767a\u8272\u304c\u7dba\u9e97\u3067\u3059\n \u9ed2\u306e\u767a\u8272\u304c\u7dba\u9e97\u3067\u3059\u3002\n\n # more option\n $ goolabs shortsum --length 180 \u9ed2\u306e\u767a\u8272\u304c\u7dba\u9e97\u3067\u3059...\n\n # specify a file as an alternative to the review\n $ goolabs shortsum --file review.txt\n\n # get raw json\n $ goolabs shortsum --json --request-id req005 \u3053\u306e\u30b7\u30ea\u30fc\u30ba\u3092\u8cb7\u3046\u306e3\u53f0\u76ee\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u9ed2\u306e\u767a\u8272\u304c\u7dba\u9e97\u3067\u3059\n {\n \"length\": 120,\n \"summary\": \"\u9ed2\u306e\u767a\u8272\u304c\u7dba\u9e97\u3067\u3059\u3002\",\n \"request_id\": \"req005\"\n }\n\nkeyword\n--------------------\n\n.. code-block:: bash\n\n $ goolabs keyword --help\n Usage: goolabs keyword [OPTIONS] TITLE [BODY]\n\n Extract \"keywords\" from an input document.\n\n Options:\n -a, --app-id TEXT\n -m, --max_num INTEGER\n -fo, --forcus [ORG|PSN|LOC]\n -r, --request-id TEXT\n -f, --file FILENAME\n -j, --json / --no-json\n --help Show this message and exit.\n\nSample usage.\n\n.. code-block:: bash\n\n $ goolabs keyword \"\u533f\u540d\u6027\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d3\u30b9\u300cMURA\u300d\" \"NTT\u30ec\u30be\u30ca\u30f3\u30c8\u682a\u5f0f\u4f1a\u793e\"\n \u533f\u540d\u6027,0.6\n \u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d3\u30b9,0.6\n MURA,0.6\n NTT\u30ec\u30be\u30ca\u30f3\u30c8\u682a\u5f0f\u4f1a\u793e,0.4\n\n # more option\n $ goolabs keyword --max_num 2 --forcus ORG \"\u533f\u540d\u6027\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d3\u30b9\u300cMURA\u300d\" \"NTT\u30ec\u30be\u30ca\u30f3\u30c8\u682a\u5f0f\u4f1a\u793e\"\n\n # specify a file as an alternative to the body\n $ goolabs keyword --file body.txt \"\u533f\u540d\u6027\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d3\u30b9\u300cMURA\u300d\"\n\n # get raw json\n $ goolabs keyword --json --request-id req006 \"\u533f\u540d\u6027\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d3\u30b9\u300cMURA\u300d\" \"NTT\u30ec\u30be\u30ca\u30f3\u30c8\u682a\u5f0f\u4f1a\u793e\"\n {\n \"keywords\": [\n { \"\u533f\u540d\u6027\": 0.6 },\n { \"\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d3\u30b9\": 0.6 },\n { \"MURA\": 0.6 },\n { \"NTT\u30ec\u30be\u30ca\u30f3\u30c8\u682a\u5f0f\u4f1a\u793e\": 0.4 }\n ],\n \"request_id\": \"req006\"\n }\n\nchrono\n--------------------\n\n.. code-block:: bash\n\n $ goolabs chrono --help\n Usage: goolabs chrono [OPTIONS] [SENTENCE]\n\n Extract expression expressing date and time and normalize its value\n\n ptions:\n -a, --app-id TEXT\n -r, --request-id TEXT\n -d, --doc-time TEXT\n -f, --file FILENAME\n -j, --json / --no-json\n --help Show this message and exit.\n\nSample usage.\n\n.. code-block:: bash\n\n $ goolabs chrono \"\u4eca\u65e5\u306e10\u6642\u534a\u306b\u51fa\u304b\u3051\u307e\u3059\u3002\"\n \u4eca\u65e5: 2017-05-29\n 10\u6642\u534a: 2017-05-29T10:30\n\n # more option\n $ goolabs chrono -d \"2016-04-01T09:00:00\" \"\u4eca\u65e5\u306e10\u6642\u534a\u306b\u51fa\u304b\u3051\u307e\u3059\u3002\"\n \u4eca\u65e5: 2016-04-01\n 10\u6642\u534a: 2016-04-01T10:30\n\n # specify a file as an alternative to the body\n $ goolabs chrono --file sentence.txt\n\n # get raw json\n $ goolabs chrono --json --request-id req007 \"\u4eca\u65e5\u306e10\u6642\u534a\u306b\u51fa\u304b\u3051\u307e\u3059\"\n {\n \"datetime_list\": [\n [\n \"\u4eca\u65e5\",\n \"2017-05-29\"\n ],\n [\n \"10\u6642\u534a\",\n \"2017-05-29T10:30\"\n ]\n ],\n \"doc_time\": \"2017-05-29T12:36:33\",\n \"request_id\": \"req007\"\n }\n\nPython Support\n==============\n* Python 2.6, 2.7, 3,3, 3.4 or later.\n\nUsing\n=====\n* `Goo labs API `_ .\n\nLicense\n=======\n* Source code of this library Licensed under the MIT License.\n* You have to use of Goo labs API under `the Term `_\n\nSee the LICENSE.rst file for specific terms.\n\nAuthors\n=======\n\n* tell-k \n\nHistory\n=======\n\n0.4.0(May 30, 2017)\n---------------------\n* Add new api \"chrono\".\n* Add support for Python3.6.\n* Add type annotation.\n\n0.3.0(Mar 14, 2016)\n---------------------\n* Add new api \"keyword\".\n\n0.2.2(Jul 12, 2015)\n---------------------\n* Add \"-l\" option for \"goolabs shortsum\" command.\n\n0.2.0(Jul 12, 2015)\n---------------------\n* Add new api \"shortsum\".\n* improved unit test code\n\n0.1.2(Jan 1, 2015)\n---------------------\n* Exclude test code from installed packages\n\n0.1.1(Dec 31, 2014)\n---------------------\n* Add unit test for commandline tools.\n\n0.1.0(Dec 25, 2014)\n---------------------\n* First release\n\n\n.. |travis| image:: https://travis-ci.org/tell-k/goolabs.svg?branch=master\n :target: https://travis-ci.org/tell-k/goolabs\n\n.. |coveralls| image:: https://coveralls.io/repos/tell-k/goolabs/badge.png\n :target: https://coveralls.io/r/tell-k/goolabs\n :alt: coveralls.io\n\n.. |version| image:: https://img.shields.io/pypi/v/goolabs.svg\n :target: http://pypi.python.org/pypi/goolabs/\n :alt: latest version\n\n.. |license| image:: https://img.shields.io/pypi/l/goolabs.svg\n :target: http://pypi.python.org/pypi/goolabs/\n :alt: license\n\n.. |requires| image:: https://requires.io/github/tell-k/goolabs/requirements.svg?branch=master\n :target: https://requires.io/github/tell-k/goolabs/requirements/?branch=master\n :alt: requirements status\n\n\n\n\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/tell-k/goolabs",
"keywords": "goolabs,web,api,client",
"license": "MIT",
"maintainer": "",
"maintainer_email": "",
"name": "goolabs",
"package_url": "https://pypi.org/project/goolabs/",
"platform": "",
"project_url": "https://pypi.org/project/goolabs/",
"project_urls": {
"Homepage": "https://github.com/tell-k/goolabs"
},
"release_url": "https://pypi.org/project/goolabs/0.4.0/",
"requires_dist": [
"click",
"requests",
"six"
],
"requires_python": "",
"summary": "Goo labs API client for python. And provide some command line tools.",
"version": "0.4.0"
},
"last_serial": 2908389,
"releases": {
"0.1.0": [
{
"comment_text": "",
"digests": {
"md5": "8b6c6840799f543fde1b86ee389f94a0",
"sha256": "ea4ab53aa4fdb8d23dd988f1588e3e0d3450e5458c1d75188febaa9ae985e391"
},
"downloads": -1,
"filename": "goolabs-0.1.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "8b6c6840799f543fde1b86ee389f94a0",
"packagetype": "bdist_wheel",
"python_version": "2.7",
"requires_python": null,
"size": 13104,
"upload_time": "2014-12-24T18:23:07",
"url": "https://files.pythonhosted.org/packages/7b/62/362228d9d90a0c931e480f930010e37b4f1ddaa30c455afae5c0d9d303c7/goolabs-0.1.0-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "8d8f2ffdddf4e5bf8e66ce2eb9dd290c",
"sha256": "860f309061c70ab7093c2c4e8221c7e6ce28f9cfb9ebd231fee1840b39266609"
},
"downloads": -1,
"filename": "goolabs-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "8d8f2ffdddf4e5bf8e66ce2eb9dd290c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 9410,
"upload_time": "2014-12-24T18:23:04",
"url": "https://files.pythonhosted.org/packages/0a/1e/143db3127a2076fb949899b5a67c2448a77033e674e442e88b0945192a91/goolabs-0.1.0.tar.gz"
}
],
"0.1.1": [
{
"comment_text": "",
"digests": {
"md5": "6238b5c89b1db73b69634946154d2701",
"sha256": "681623fa32c255db205548d7e98d4309f712f195ed884998d385056613d0ea46"
},
"downloads": -1,
"filename": "goolabs-0.1.1-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "6238b5c89b1db73b69634946154d2701",
"packagetype": "bdist_wheel",
"python_version": "2.7",
"requires_python": null,
"size": 15481,
"upload_time": "2014-12-31T13:38:37",
"url": "https://files.pythonhosted.org/packages/5f/d3/5e26f04bacb557df85c96bd7e94ae044ec2f88fe1e793b7877b5e6350004/goolabs-0.1.1-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "8935ffc45ea6f61ade0867b51fd3c140",
"sha256": "8a4e218845e9d93d0c0167a0978edd72bbccf92c43fe5b56ae6c7198a4c5af78"
},
"downloads": -1,
"filename": "goolabs-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "8935ffc45ea6f61ade0867b51fd3c140",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 10866,
"upload_time": "2014-12-31T13:38:33",
"url": "https://files.pythonhosted.org/packages/d2/93/7f409b8756daac7117045c7e1e9f92542ce017ab35adf2e5d8921893d1f1/goolabs-0.1.1.tar.gz"
}
],
"0.1.2": [
{
"comment_text": "",
"digests": {
"md5": "0dc09ae82df6c4829f42893aab718376",
"sha256": "0c50e7402453d93e6a514afd614454c53fb842fb99aa4a642b534d87868029c9"
},
"downloads": -1,
"filename": "goolabs-0.1.2-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "0dc09ae82df6c4829f42893aab718376",
"packagetype": "bdist_wheel",
"python_version": "2.7",
"requires_python": null,
"size": 10942,
"upload_time": "2015-01-01T15:24:23",
"url": "https://files.pythonhosted.org/packages/ff/63/2829fd95a1eb341b44238ced60e81d188d087248b996fe15e34e5e108235/goolabs-0.1.2-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "20ff9989d79430e81287701cf93a2259",
"sha256": "73e598fe2abf9c7a06d336a43254f17dab0cd3b2525b111187e9c4b901b672d5"
},
"downloads": -1,
"filename": "goolabs-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "20ff9989d79430e81287701cf93a2259",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 10916,
"upload_time": "2015-01-01T15:24:20",
"url": "https://files.pythonhosted.org/packages/6a/92/b00f5772213545d654cd8eae62ac6bee304a19863b2f37635b629395ed47/goolabs-0.1.2.tar.gz"
}
],
"0.2.0": [
{
"comment_text": "",
"digests": {
"md5": "03cf24f999bbc5d2972b7ac34e9780de",
"sha256": "43c21a1910c07a28686bb2900052339b64b6703f3446e321e7df7f13094d3391"
},
"downloads": -1,
"filename": "goolabs-0.2.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "03cf24f999bbc5d2972b7ac34e9780de",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 12518,
"upload_time": "2015-07-11T16:12:26",
"url": "https://files.pythonhosted.org/packages/3c/fe/a2a1e1bf06dc22e0ffd07a7b88cac4310eb2ec88429819fc0981c3ed341c/goolabs-0.2.0-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "fc57657a865f563188e4899b748234e2",
"sha256": "34edd8b627322f39e9af0c220a196c493782e15fc302695d3701b4e3fbcc0101"
},
"downloads": -1,
"filename": "goolabs-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "fc57657a865f563188e4899b748234e2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 12953,
"upload_time": "2015-07-11T16:12:29",
"url": "https://files.pythonhosted.org/packages/57/5e/f6d42b04e322dfc31e0509474889d1801a8d71c999d30260f7224ea1547e/goolabs-0.2.0.tar.gz"
}
],
"0.2.1": [],
"0.2.2": [
{
"comment_text": "",
"digests": {
"md5": "918a236546786b9c2896191b587a92b6",
"sha256": "c9584ca65ee1f46aeb23bdfa4414a1ac77d96cb294129a2bba3c9219c360f09b"
},
"downloads": -1,
"filename": "goolabs-0.2.2-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "918a236546786b9c2896191b587a92b6",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 12776,
"upload_time": "2015-07-12T10:49:55",
"url": "https://files.pythonhosted.org/packages/3d/63/d0140f072ed3553c9d5c65c07c5920f2f871511af43a7589a8ea153ac8cf/goolabs-0.2.2-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "425de358c155e86735cf5b7eff6cd11c",
"sha256": "9078bf8d26b69860cf6b9f1e6143014a596ee122743130b082ba2daea8a10e26"
},
"downloads": -1,
"filename": "goolabs-0.2.2.tar.gz",
"has_sig": false,
"md5_digest": "425de358c155e86735cf5b7eff6cd11c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 13014,
"upload_time": "2015-07-12T10:49:59",
"url": "https://files.pythonhosted.org/packages/c6/7d/c56a64565467a6935ee48118f0a62276cc3e432f431e3e63bfef4051d19d/goolabs-0.2.2.tar.gz"
}
],
"0.3.0": [
{
"comment_text": "",
"digests": {
"md5": "7129593cca524b16bf2e6b2f774c0665",
"sha256": "65936fab5889d7fc35612521a9664eced328463533d9e216a8ee8abe42925950"
},
"downloads": -1,
"filename": "goolabs-0.3.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "7129593cca524b16bf2e6b2f774c0665",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 13976,
"upload_time": "2016-03-14T15:41:47",
"url": "https://files.pythonhosted.org/packages/aa/73/49c0aec3621890b31b771ad0cb403af76f97cabc666870cdfde0569e7fa0/goolabs-0.3.0-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "594f14978898006377e0c3318160dc4c",
"sha256": "a36fd41ddb6df0b8d9caff11ade1e40c6c57d1b81e3e4ec4450f4630c822b397"
},
"downloads": -1,
"filename": "goolabs-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "594f14978898006377e0c3318160dc4c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 14644,
"upload_time": "2016-03-14T15:41:53",
"url": "https://files.pythonhosted.org/packages/a8/d1/ca54b12737ce02d30c19c509f401f41af8e924ee3471dd21968062f76d0d/goolabs-0.3.0.tar.gz"
}
],
"0.4.0": [
{
"comment_text": "",
"digests": {
"md5": "f92ca2485b5fd3e68be6b25172d8f282",
"sha256": "fd66d8eb8a5824c8481b2325ea3ecc8e3feea6816ea4670af0850463e1be149b"
},
"downloads": -1,
"filename": "goolabs-0.4.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "f92ca2485b5fd3e68be6b25172d8f282",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 15298,
"upload_time": "2017-05-30T04:38:52",
"url": "https://files.pythonhosted.org/packages/2e/06/c3c480103d0880b726711dee8650fafbfa847152d11fc298de0dace56e4e/goolabs-0.4.0-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "ea0d679748a4cf699a3813c5949444af",
"sha256": "4f768a5b98960c507f5ba4e1ca14d45e3139388669148a2750d415c312281527"
},
"downloads": -1,
"filename": "goolabs-0.4.0.tar.gz",
"has_sig": false,
"md5_digest": "ea0d679748a4cf699a3813c5949444af",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 16009,
"upload_time": "2017-05-30T04:38:54",
"url": "https://files.pythonhosted.org/packages/ce/86/2d3b5bd85311ee3a7ae7a661b3619095431503cd0cae03048c646b700cad/goolabs-0.4.0.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "f92ca2485b5fd3e68be6b25172d8f282",
"sha256": "fd66d8eb8a5824c8481b2325ea3ecc8e3feea6816ea4670af0850463e1be149b"
},
"downloads": -1,
"filename": "goolabs-0.4.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "f92ca2485b5fd3e68be6b25172d8f282",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 15298,
"upload_time": "2017-05-30T04:38:52",
"url": "https://files.pythonhosted.org/packages/2e/06/c3c480103d0880b726711dee8650fafbfa847152d11fc298de0dace56e4e/goolabs-0.4.0-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "ea0d679748a4cf699a3813c5949444af",
"sha256": "4f768a5b98960c507f5ba4e1ca14d45e3139388669148a2750d415c312281527"
},
"downloads": -1,
"filename": "goolabs-0.4.0.tar.gz",
"has_sig": false,
"md5_digest": "ea0d679748a4cf699a3813c5949444af",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 16009,
"upload_time": "2017-05-30T04:38:54",
"url": "https://files.pythonhosted.org/packages/ce/86/2d3b5bd85311ee3a7ae7a661b3619095431503cd0cae03048c646b700cad/goolabs-0.4.0.tar.gz"
}
]
}