Python/Romkan ローマ字とひらがなを相互に変換する Python用のライブラリ
What is this?
“Python/Romkan” is the Python ver. of Ruby/Romkan, which can convert a Japanese Romaji string to a Japanese Kana string or vice versa.
Download and Usage
Download the source code from here: romkan.py (Hosted by Google Code) . Ruby/Romkan is a free software with ABSOLUTELY NO WARRANTY under the terms of the Ruby’s licence.
% python
>>> import romkan
>>> print romkan.to_kana(u”syatyou”)
しゃちょう
>>> print romkan.to_roma(u”しゃちょう”)shachou
>>> print romkan.to_hepburn(u”syatyou”)
shachou
Features
- The input/output of all the APIs are Unicode strings.
- For the API detail, please refer to the original Ruby/Romkan page
History
- 2010/ 8/24 – Updated (changed input/output all to Katakana, and modified Kana to Roma conversion to some foreign pronunciation like “wi” “we” “wo”.
- 2010/ 6/14 – Released the first version.
Acknowledgement
I really thank Mr. Satoru Takabayashi for developing this wonderful library.
About the Author
Masato Hagiwara currently works for Rakuten Institute of Technology in New York, as a Senior Scientist. Have worked on search technologies at Google, Microsoft Research, and Baidu in the past. Expert in Natural Language Processing (NLP). Also a lead translator of the O'Reilly book "Natural Language Processing in Python." A native speaker of Japanese. Good command of English and Chinese (Mandarin). For more information, see About Me.Calender
May 2013 M T W T F S S « Sep 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Pages
- 100 NLP Papers
- About Me
- iconlang – new ideographic writing system for better visibility and legibility
- iconlang – 視認性・識別性向上のための新しい表意文字体系
- Music
- Music for Language Fans
- NLTK Japanese Corpora – NLTKで使える日本語コーパス
- Python/Romkan ローマ字とひらがなを相互に変換する Python用のライブラリ
- TinySegmenter in Python
- 中国語学習完全ガイド | 1年以内にマスターする中国語
- 巻き舌クリニック – みんなで巻き舌を克服するサイト