| 程序包 | 说明 |
|---|---|
| com.github.houbb.opencc4j.core.impl | |
| com.github.houbb.opencc4j.support.segment.impl |
分词实现类
|
| com.github.houbb.opencc4j.util |
工具类
|
| 限定符和类型 | 方法和说明 |
|---|---|
static ZhConvertBootstrap |
ZhConvertBootstrap.newInstance(Segment segment)
已过时。
|
ZhConvertBootstrap |
ZhConvertBootstrap.segment(Segment segment)
分词实现
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractSegment
抽象分词实现
|
class |
CharSegment
简单的转化为 char 列表
Created: 2018/6/22 下午2:43
Project: opencc4j
|
class |
FastForwardSegment
快速向前算法
|
class |
HuaBanSegment
花瓣分词
Created: 2018/6/22 下午2:43
Project: opencc4j
|
class |
TwFastForwardSegment
快速向前算法-中国台湾
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Segment |
Segments.chars()
直接拆分为单个字符
|
static Segment |
Segments.defaults()
默认分词形式
1.
|
static Segment |
Segments.fastForward()
快速向前算法
|
static Segment |
Segments.huaBan()
花瓣分词
|
static Segment |
Segments.twFastForward()
快速向前算法-中国台湾
|
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
ZhConverterUtil.isSimple(String charOrPhrase,
Segment segment)
已过时。
|
static boolean |
ZhConverterUtil.isTraditional(String charOrPhrase,
Segment segment)
已过时。
|
static List<String> |
ZhConverterUtil.simpleList(String original,
Segment segment)
已过时。
|
static String |
ZhConverterUtil.toSimple(String original,
Segment segment)
已过时。
|
static String |
ZhConverterUtil.toTraditional(String original,
Segment segment)
转换为简体
|
static List<String> |
ZhConverterUtil.traditionalList(String original,
Segment segment)
已过时。
|
Copyright © 2022. All rights reserved.