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/mod"
SubSModule
Class SubSModule
Hierarchy
SubSModule
SubSModuleOptimizer
SubSModuleTokenizer
Implements
ISubSModule
Index
Constructors
constructor
Properties
_BLACKLIST
_POSTAG
_TABLE
inited
name
priority
segment
type
type
Methods
_cache
create
Raw
Token
create
Token
debug
Token
init
slice
Token
_init
init
Constructors
constructor
new
SubSModule
(
type
?:
ISModuleType
, segment
?:
Segment
,
...
argv
:
any
[]
)
:
SubSModule
Parameters
Optional
type:
ISModuleType
Optional
segment:
Segment
Rest
...
argv:
any
[]
Returns
SubSModule
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
:
ISModuleType
Static
type
type
:
ISModuleType
Methods
Protected
_cache
_cache
(
...
argv
:
any
[]
)
:
void
Parameters
Rest
...
argv:
any
[]
Returns
void
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
[]
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
:
SubSModule
Parameters
segment:
Segment
Rest
...
argv:
any
[]
Returns
T
README
Globals
"lib/mod/mod"
SModule
SubSModule
constructor
_BLACKLIST
_POSTAG
_TABLE
inited
name
priority
segment
type
type
_cache
create
Raw
Token
create
Token
debug
Token
init
slice
Token
_init
init
IModule
Static
ISModule
ISubSModule
ISubSModule
Create
ISubSModule
Method
ISModule
Type
Generated using
TypeDoc
回傳最簡版的 IWord { w, p, f, s }