Search
Preparing search index...
The search index is not available
novel-segment
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
"lib/submod/ChsNameTokenizer"
ChsNameTokenizer
Class ChsNameTokenizer
Hierarchy
any
ChsNameTokenizer
Index
Properties
_TABLE
name
Methods
_cache
match
Name
split
Properties
Protected
_TABLE
_TABLE
:
IDICT
<
IWord
>
name
name
:
string
= "ChsNameTokenizer"
Methods
_cache
_cache
(
)
:
void
Returns
void
match
Name
match
Name
(
text
:
string
, cur
?:
number
)
:
IWord
[]
匹配包含的人名,并返回相关信息
Parameters
text:
string
文本
Default value
cur:
number
= 0
开始位置
Returns
IWord
[]
返回格式 {w: '人名', c: 开始位置}
split
split
(
words
:
IWord
[]
)
:
IWord
[]
对未识别的单词进行分词
Parameters
words:
IWord
[]
单词数组
Returns
IWord
[]
README
Globals
"lib/submod/
Chs
Name
Tokenizer"
Chs
Name
Tokenizer
_TABLE
name
_cache
match
Name
split
init
Generated using
TypeDoc
匹配包含的人名,并返回相关信息