tell-k / goolabs

Goo labs API client for python. And provide some command line tools.

Home Page:https://pypi.python.org/pypi/goolabs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Goo labs API client for python. And provide some command line tools.

travis coveralls.io latest version license requirements status

Features

  • nits
  • Provide API Client for Goo labs API.
  • Provide some command line tools.

Required

Set up

Make environment with pip:

$ pip install goolabs

For Max OS X user. If you want to use command line tool only, you can install from homebrew:

$ brew install goolabs

Usage

morph

Morphological analysis for Japanese.

See also https://labs.goo.ne.jp/api/2015/1302/

Sample response.

similarity

Scoring the similarity of two words.

See also https://labs.goo.ne.jp/api/2015/1295/

Sample response.

hiragana

Convert the Japanese to Hiragana or Katakana.

See also https://labs.goo.ne.jp/api/2015/1293/

Sample response.

entitiy

Extract the unique representation from sentence.

see also https://labs.goo.ne.jp/api/2015/1299/.

Sample response.

shortsum

Summarizes the sent-in Japanese reviews into a short summary.

see also https://labs.goo.ne.jp/api/2015/1305/

Sample response.

keyword

Extracts "Japanese keywords", such as person names, location names, and so on, from an input document consisting of a title and a body.

see also https://labs.goo.ne.jp/api/2015/1325/

Sample response.

chrono

Extract expression expressing date and time and normalize its value

see also https://labs.goo.ne.jp/api/jp/time-normalization

Sample response.

Other tips

You can see the HTTP response you called right before.

Command line tool

Set environment variable GOOLABS_APP_ID

To use this cli, it is recommended to set the environment variable GOOLABS_APP_ID.

You may pass the App id every time you use it, but it's not recommended.

morph

Sample usage.

similarity

Sample usage.

hiragana

Sample usage.

entity

Sample usage.

shortsum

Sample usage.

keyword

Sample usage.

chrono

Sample usage.

Python Support

  • Python 2.6, 2.7, 3,3, 3.4 or later.

Using

License

  • Source code of this library Licensed under the MIT License.
  • You have to use of Goo labs API under the Term

See the LICENSE.rst file for specific terms.

Authors

  • tell-k <ffk2005 at gmail.com>

History

0.4.0(May 30, 2017)

  • Add new api "chrono".
  • Add support for Python3.6.
  • Add type annotation.

0.3.0(Mar 14, 2016)

  • Add new api "keyword".

0.2.2(Jul 12, 2015)

  • Add "-l" option for "goolabs shortsum" command.

0.2.0(Jul 12, 2015)

  • Add new api "shortsum".
  • improved unit test code

0.1.2(Jan 1, 2015)

  • Exclude test code from installed packages

0.1.1(Dec 31, 2014)

  • Add unit test for commandline tools.

0.1.0(Dec 25, 2014)

  • First release

About

Goo labs API client for python. And provide some command line tools.

https://pypi.python.org/pypi/goolabs

License:MIT License


Languages

Language:Python 100.0%