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/PunctuationTokenizer"
PunctuationTokenizer
Class PunctuationTokenizer
Hierarchy
any
PunctuationTokenizer
Index
Properties
STOPWORD
STOPWORD2
_STOPWORD
name
Methods
match
Stopword
split
Properties
STOPWORD
STOPWORD
:
object
= STOPWORD
Type declaration
[
key:
string
]:
number
STOPWORD2
STOPWORD2
:
object
= STOPWORD2
Type declaration
[
key:
number
]:
object
[
key:
string
]:
number
_STOPWORD
_STOPWORD
:
string
|
string
[]
= _STOPWORD
name
name
:
string
= "PunctuationTokenizer"
Methods
match
Stopword
match
Stopword
(
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
[]
README
Globals
"lib/submod/
Punctuation
Tokenizer"
Punctuation
Tokenizer
STOPWORD
STOPWORD2
_STOPWORD
name
match
Stopword
split
init
Generated using
TypeDoc
匹配包含的标点符号,返回相关信息