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/WildcardTokenizer"
WildcardTokenizer
Class WildcardTokenizer
Hierarchy
any
WildcardTokenizer
Index
Properties
_TABLE
_TABLE2
name
Methods
_cache
create
Wildcard
Token
match
Word
split
split
Wildcard
Properties
Protected
_TABLE
_TABLE
:
IDICT
<
IWord
>
Protected
_TABLE2
_TABLE2
:
IDICT2
<
IWord
>
name
name
:
string
= "WildcardTokenizer"
Methods
_cache
_cache
(
)
:
void
Returns
void
create
Wildcard
Token
create
Wildcard
Token
(
word
:
IWord
, lasttype
?:
number
, attr
?:
IWordDebugInfo
)
:
any
Parameters
word:
IWord
Optional
lasttype:
number
Optional
attr:
IWordDebugInfo
Returns
any
match
Word
match
Word
(
text
:
string
, cur
?:
number
)
:
IWord
[]
匹配单词,返回相关信息
Parameters
text:
string
文本
Optional
cur:
number
开始位置
Returns
IWord
[]
返回格式 {w: '单词', c: 开始位置}
split
split
(
words
:
IWord
[]
)
:
IWord
[]
对未识别的单词进行分词
Parameters
words:
IWord
[]
单词数组
Returns
IWord
[]
split
Wildcard
split
Wildcard
(
text
:
string
, cur
?:
number
)
:
IWord
[]
Parameters
text:
string
Optional
cur:
number
Returns
IWord
[]
README
Globals
"lib/submod/
Wildcard
Tokenizer"
Wildcard
Tokenizer
_TABLE
_TABLE2
name
_cache
create
Wildcard
Token
match
Word
split
split
Wildcard
init
Generated using
TypeDoc
匹配单词,返回相关信息