Skip to contents

Use Baidu Cloud word segmentation service

Usage

baidu_segment(text, mode = 0)

Arguments

text

text

mode

Using 0, the web content model, or 1 the Baidu query model.

Value

a structure data of class baidu_segment

Examples

# baidu_segment("张三是个好同志吗?")