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/Optimizer"
Optimizer
Class Optimizer
分词模块管理器
Hierarchy
SModule
Optimizer
Implements
ISModule
Index
Constructors
constructor
Properties
segment
type
Methods
_do
Method
do
Optimize
Constructors
constructor
new
Optimizer
(
segment
:
Segment
)
:
Optimizer
Parameters
segment:
Segment
分词接口
Returns
Optimizer
Properties
segment
segment
:
Segment
type
type
:
string
= "optimizer"
Methods
Protected
_do
Method
_do
Method<S, T>
(
fn
:
string
, target
:
S
[]
, mods
:
T
[]
,
...
argv
:
any
[]
)
:
S
[]
Type parameters
S
:
IWord
T
:
ISubSModule
Parameters
fn:
string
target:
S
[]
mods:
T
[]
Rest
...
argv:
any
[]
Returns
S
[]
do
Optimize
do
Optimize
(
words
:
IWord
[]
, mods
:
ISubOptimizer
[]
,
...
argv
:
any
[]
)
:
IWord
[]
对一段文本进行分词
Parameters
words:
IWord
[]
单词数组
mods:
ISubOptimizer
[]
Rest
...
argv:
any
[]
Returns
IWord
[]
README
Globals
"lib/mod/
Optimizer"
Optimizer
constructor
segment
type
_do
Method
do
Optimize
SubSModule
Optimizer
ISub
Optimizer
ISub
Optimizer
Create
Generated using
TypeDoc
分词模块管理器