Python interface to Lateral's APIs
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lateral
.gitignore
readme.md
setup.py

readme.md

Lateral

This is a Python interface to Lateral's APIs.

The package currently only supports their Recommender API.

Installation

$ pip install lateral

Usage

from lateral.api import LateralRecommender
lr = LateralRecommender('my-subscription-key')

text = '''European leaders expressed their desire
       to support the recovery as the global economy
       moves beyond the global financial crisis. European
       Commission President Barroso and European Council
       President Van Rompuy stressed the importance of
       coordinated growth strategies as well as finalising
       agreements on core financial reforms, and actions on
       tax and anti-corruption.'''

doc_id = lr.add_doc(text)

doc = lr.fetch_doc(doc_id)

lr.delete_doc(doc_id)