@nuclia/core / Exports / Training
Class: Training
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new Training(kb
, nuclia
)
Parameters
Name | Type |
---|---|
kb | WritableKnowledgeBox |
nuclia | INuclia |
Defined in
libs/sdk-core/src/lib/db/training/training.ts:10
Properties
kb
• kb: WritableKnowledgeBox
Defined in
libs/sdk-core/src/lib/db/training/training.ts:7
nuclia
• nuclia: INuclia
Defined in
libs/sdk-core/src/lib/db/training/training.ts:8
Methods
getExecutions
▸ getExecutions(page?
): Observable
<TrainingExecutions
>
Parameters
Name | Type | Default value |
---|---|---|
page | number | 0 |
Returns
Observable
<TrainingExecutions
>
Defined in
libs/sdk-core/src/lib/db/training/training.ts:32
getStatus
▸ getStatus(type
): Observable
<TrainingTask
>
Parameters
Name | Type |
---|---|
type | TrainingType |
Returns
Observable
<TrainingTask
>
Defined in
libs/sdk-core/src/lib/db/training/training.ts:26
hasModel
▸ hasModel(type
): Observable
<boolean
>
Parameters
Name | Type |
---|---|
type | TrainingType |
Returns
Observable
<boolean
>
Defined in
libs/sdk-core/src/lib/db/training/training.ts:36
start
▸ start(type
, params?
): Observable
<TrainingTask
>
Parameters
Name | Type |
---|---|
type | TrainingType |
params? | Object |
params.valid_labelsets? | string [] |
params.valid_nertags? | string [] |
Returns
Observable
<TrainingTask
>
Defined in
libs/sdk-core/src/lib/db/training/training.ts:15
stop
▸ stop(type
): Observable
<TrainingTask
>
Parameters
Name | Type |
---|---|
type | TrainingType |
Returns
Observable
<TrainingTask
>