Skip to content

Latest commit

 

History

History
53 lines (31 loc) · 1.22 KB

README.rst

File metadata and controls

53 lines (31 loc) · 1.22 KB

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 [email protected]:translate/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.