mathjazz / python-caighdean

python lib for accessing caighdean translation server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python-caighdean

Python client for the Caighdean Machine Translation service - https://github.com/kscanne/caighdean

Build Status Test Coverage

Install

$ pip install caighdean

For development install

$ pip install -e git+git@github.com:phlax/python-caighdean#egg=caighdean
$ pip install caighdean[test]

Run

>>> import caighdean

>>> source = u'Agus thubhairt e, \n "Iongantach!" an dèidh sin.'

>>> source
u'Agus thubhairt e, \n "Iongantach!" an d\xc3\xa8idh sin.'

>>> caighdean.Translator().translate(source)
u'Agus d\xfairt s\xe9, \n "Iontach!" ina dhiaidh sin.'

>>> print(caighdean.Translator().translate(source))
Agus dúirt ,
 "Iontach!" ina dhiaidh sin.

About

python lib for accessing caighdean translation server

License:GNU General Public License v3.0


Languages

Language:Python 100.0%