格式化代码、注释;
This commit is contained in:
parent
f173925dc0
commit
92cb2a28d6
@ -36,7 +36,6 @@ import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
*
|
||||
* 中文数量词子分词器
|
||||
*/
|
||||
class CN_QuantifierSegmenter implements ISegmenter {
|
||||
@ -45,6 +44,7 @@ class CN_QuantifierSegmenter implements ISegmenter{
|
||||
private static final String SEGMENTER_NAME = "QUAN_SEGMENTER";
|
||||
|
||||
private static Set<Character> ChnNumberChars = new HashSet<>();
|
||||
|
||||
static {
|
||||
// 中文数词
|
||||
// Cnum
|
||||
@ -144,6 +144,7 @@ class CN_QuantifierSegmenter implements ISegmenter{
|
||||
|
||||
/**
|
||||
* 处理中文量词
|
||||
*
|
||||
* @param context 需要处理的内容
|
||||
*/
|
||||
private void processCount(AnalyzeContext context) {
|
||||
@ -229,6 +230,7 @@ class CN_QuantifierSegmenter implements ISegmenter{
|
||||
|
||||
/**
|
||||
* 添加数词词元到结果集
|
||||
*
|
||||
* @param context 需要添加的词元
|
||||
*/
|
||||
private void outputNumLexeme(AnalyzeContext context) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user