Description Usage Arguments Details Value Author(s) Examples
The transformation of traditional Chinese and simplified Chinese
1 | hanlp.convert(text, mode = "t2s")
|
text |
a chinese sentence . |
mode |
transformation mode, default |
s2t
: Simplified Chinese to Traditional Chinese
t2s
: Traditional Chinese to Simplified Chinese
s2tw
: Simplified Chinese to Traditional Chinese (Taiwan Standard)
tw2s
: Traditional Chinese (Taiwan Standard) to Simplified Chinese
s2hk
: Simplified Chinese to Traditional Chinese (Hong Kong Standard)
hk2s
: Traditional Chinese (Hong Kong Standard) to Simplified Chinese
s2tw
: Simplified Chinese to Traditional Chinese (Taiwan Standard)
tw2s
: Traditional Chinese (Taiwan Standard) to Simplified Chinese
t2tw
: Traditional Chinese to Taiwan Standard
t2hk
: Traditional Chinese to Hong Kong Standard
tw2hk
: Taiwan Standard to Hong Kong Standard
hk2hw
: Hong Kong Standard to Taiwan Standard
pinyin
: to Chinese pinyin
a string.
https://github.com/qxde01/RHanLP
1 2 3 4 5 | ## Not run:
hanlp.convert('hello world')
hanlp.convert('hello world',mode='s2t')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.