hanlp.convert: Convert a chinese sentence.

Description Usage Arguments Details Value Author(s) Examples

Description

The transformation of traditional Chinese and simplified Chinese

Usage

1

Arguments

text

a chinese sentence .

mode

transformation mode, default t2s.

Details

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

Value

a string.

Author(s)

https://github.com/qxde01/RHanLP

Examples

1
2
3
4
5
## Not run: 
hanlp.convert('hello world')
hanlp.convert('hello world',mode='s2t')

## End(Not run)

qxde01/RHanLP documentation built on May 13, 2019, 8:39 a.m.