public class RecognitionTool extends Object
构造器和说明 |
---|
RecognitionTool() |
限定符和类型 | 方法和说明 |
---|---|
static boolean |
isChineseNumber(String text,
int start,
int len)
中文数字识别,包括大小写
|
static boolean |
isEnglish(char c)
英文字符识别,包括大小写,包括全角和半角
|
static boolean |
isEnglish(String text,
int start,
int len)
英文单词识别
|
static boolean |
isEnglishAndNumberMix(String text,
int start,
int len)
英文字母和数字混合识别,能识别纯数字、纯英文单词以及混合的情况
|
static boolean |
isFraction(String text,
int start,
int len)
小数和分数识别
|
static boolean |
isNumber(char c)
阿拉伯数字识别,包括全角和半角
|
static boolean |
isNumber(String text,
int start,
int len)
数字识别
|
static boolean |
isQuantifier(String text,
int start,
int len)
数量词识别,如日期、时间、长度、容量、重量、面积等等
|
static void |
main(String[] args) |
static boolean |
recog(String text)
识别文本(英文单词、数字、时间等)
|
static boolean |
recog(String text,
int start,
int len)
识别文本(英文单词、数字、时间等)
|
public static boolean recog(String text)
text
- 识别文本public static boolean recog(String text, int start, int len)
text
- 识别文本start
- 待识别文本开始索引len
- 识别长度public static boolean isFraction(String text, int start, int len)
text
- 识别文本start
- 待识别文本开始索引len
- 识别长度public static boolean isEnglishAndNumberMix(String text, int start, int len)
text
- 识别文本start
- 待识别文本开始索引len
- 识别长度public static boolean isEnglish(String text, int start, int len)
text
- 识别文本start
- 待识别文本开始索引len
- 识别长度public static boolean isEnglish(char c)
c
- 字符public static boolean isQuantifier(String text, int start, int len)
text
- 识别文本start
- 待识别文本开始索引len
- 识别长度public static boolean isNumber(String text, int start, int len)
text
- 识别文本start
- 待识别文本开始索引len
- 识别长度public static boolean isNumber(char c)
c
- 字符public static boolean isChineseNumber(String text, int start, int len)
text
- 识别文本start
- 待识别文本开始索引len
- 识别长度public static void main(String[] args)
Copyright © 2014 APDPlat. All rights reserved.