没有任何数据可供显示
开源项目社区 | 当前位置 : |
|
www.trustie.net/open_source_projects | 主页 > 开源项目社区 > pylolz |
pylolz
|
0 | 0 | 0 |
贡献者 | 讨论 | 代码提交 |
概述
PyLOLzA Python library for translating English to LOLspeak
Created by Stephen Newey
Original Python code, copyright 2008 Stephen Newey
Inspired by Dave Dribin's Ruby library lolspeak (http://www.dribin.org/dave/lolspeak/)
tranzlator.yml dictionary by Dave Dribin
Python code licensed under the Mozilla Public License v1.1. http://www.mozilla.org/MPL/MPL-1.1.html
Requires: PyYAML (http://pyyaml.org/)_
Download latest version (0.3): http://pylolz.googlecode.com/files/pylolz-0.3.tar.gz
Usage:
Run the lolz.py file from the command line followed by a word or sentence to translate
In code:
>>> from pylolz.lolz import Tranzlator
>>> t = Tranzlator()
>>> t.translate_sentence('Hello. My English skills are perfect.')
'y halo thar. mah english skillz r perfik.'
创建时间:2014-05-12 08:57
标签: