Search
Preparing search index...
The search index is not available
novel-segment
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
"lib/mod/Tokenizer"
SubSModuleTokenizer
Class SubSModuleTokenizer
Hierarchy
SubSModule
SubSModuleTokenizer
Implements
ISubSModule
ISubSModule
&
object
Index
Constructors
constructor
Properties
_BLACKLIST
_POSTAG
_TABLE
inited
name
priority
segment
type
type
Methods
_cache
_split
Unknow
_split
Unset
create
Raw
Token
create
Token
debug
Token
init
slice
Token
split
_init
init
Constructors
constructor
new
SubSModule
Tokenizer
(
type
?:
ISModuleType
, segment
?:
Segment
,
...
argv
:
any
[]
)
:
SubSModuleTokenizer
Parameters
Optional
type:
ISModuleType
Optional
segment:
Segment
Rest
...
argv:
any
[]
Returns
SubSModuleTokenizer
Properties
Protected
Optional
_BLACKLIST
_BLACKLIST
:
IDICT_BLACKLIST
Protected
Optional
_POSTAG
_POSTAG
:
POSTAG
Protected
Optional
_TABLE
_TABLE
:
any
Optional
inited
inited
:
boolean
name
name
:
string
Optional
priority
priority
:
number
segment
segment
:
Segment
type
type
:
"tokenizer"
= "tokenizer"
Static
type
type
:
"tokenizer"
= "tokenizer"
Methods
Protected
_cache
_cache
(
...
argv
:
any
[]
)
:
void
Parameters
Rest
...
argv:
any
[]
Returns
void
Protected
_split
Unknow
_split
Unknow<T, U>
(
words
:
T
[]
, fn
:
function
)
:
U
[]
仅对未识别的词进行匹配 包含已存在 但 p 為 0
Type parameters
T
:
IWord
U
:
IWord
Parameters
words:
T
[]
fn:
function
(
text
:
string
,
...
argv
:
any
[]
)
:
U
[]
Parameters
text:
string
Rest
...
argv:
any
[]
Returns
U
[]
Returns
U
[]
Protected
_split
Unset
_split
Unset<T, U>
(
words
:
T
[]
, fn
:
function
)
:
U
[]
仅对未识别的词进行匹配 不包含 p 為 0
Type parameters
T
:
IWord
U
:
IWord
Parameters
words:
T
[]
fn:
function
(
text
:
string
,
...
argv
:
any
[]
)
:
U
[]
Parameters
text:
string
Rest
...
argv:
any
[]
Returns
U
[]
Returns
U
[]
Protected
create
Raw
Token
create
Raw
Token<T, U>
(
data
:
T
, ow
?:
Partial
<
T
&
IWord
>
, attr
?:
U
&
IWordDebugInfo
)
:
T
回傳最簡版的 IWord { w, p, f, s }
Type parameters
T
:
IWord
U
:
IWordDebugInfo
Parameters
data:
T
Optional
ow:
Partial
<
T
&
IWord
>
Optional
attr:
U
&
IWordDebugInfo
Returns
T
Protected
create
Token
create
Token<T, U>
(
data
:
T
, skipCheck
?:
boolean
, attr
?:
U
&
IWordDebugInfo
)
:
T
Type parameters
T
:
IWord
U
:
IWordDebugInfo
Parameters
data:
T
Optional
skipCheck:
boolean
Optional
attr:
U
&
IWordDebugInfo
Returns
T
Protected
debug
Token
debug
Token<T, U>
(
data
:
T
, attr
?:
U
&
IWordDebugInfo
, returnToken
?:
true
,
...
argv
:
any
[]
)
:
T
Type parameters
T
:
IWordDebug
U
:
IWordDebugInfo
Parameters
data:
T
Optional
attr:
U
&
IWordDebugInfo
Optional
returnToken:
true
Rest
...
argv:
any
[]
Returns
T
init
init
(
segment
:
Segment
,
...
argv
:
any
[]
)
:
this
Parameters
segment:
Segment
Rest
...
argv:
any
[]
Returns
this
Protected
slice
Token
slice
Token<T, U>
(
words
:
T
[]
, pos
:
number
, len
:
number
, data
:
T
, skipCheck
?:
boolean
, attr
?:
U
&
IWordDebugInfo
)
:
T
[]
Type parameters
T
:
IWord
U
:
IWordDebugInfo
Parameters
words:
T
[]
pos:
number
len:
number
data:
T
Optional
skipCheck:
boolean
Optional
attr:
U
&
IWordDebugInfo
Returns
T
[]
Abstract
split
split
(
words
:
IWord
[]
,
...
argv
:
any
[]
)
:
IWord
[]
Parameters
words:
IWord
[]
Rest
...
argv:
any
[]
Returns
IWord
[]
Static
Protected
_init
_init<T>
(
libThis
:
IModuleStatic
<
T
>
, segment
:
Segment
,
...
argv
:
any
[]
)
:
T
Type parameters
T
:
SubSModule
Parameters
libThis:
IModuleStatic
<
T
>
segment:
Segment
Rest
...
argv:
any
[]
Returns
T
Static
init
init<T>
(
segment
:
Segment
,
...
argv
:
any
[]
)
:
T
Type parameters
T
:
SubSModuleTokenizer
Parameters
segment:
Segment
Rest
...
argv:
any
[]
Returns
T
README
Globals
"lib/mod/
Tokenizer"
SubSModule
Tokenizer
constructor
_BLACKLIST
_POSTAG
_TABLE
inited
name
priority
segment
type
type
_cache
_split
Unknow
_split
Unset
create
Raw
Token
create
Token
debug
Token
init
slice
Token
split
_init
init
Tokenizer
ISub
Tokenizer
ISub
Tokenizer
Create
Generated using
TypeDoc
仅对未识别的词进行匹配 包含已存在 但 p 為 0