Skip to main content

@nuclia/core / Exports / Training

Class: Training

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Training(kb, nuclia)

Parameters

NameType
kbWritableKnowledgeBox
nucliaINuclia

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

NameTypeDefault value
pagenumber0

Returns

Observable<TrainingExecutions>

Defined in

libs/sdk-core/src/lib/db/training/training.ts:32


getStatus

getStatus(type): Observable<TrainingTask>

Parameters

NameType
typeTrainingType

Returns

Observable<TrainingTask>

Defined in

libs/sdk-core/src/lib/db/training/training.ts:26


hasModel

hasModel(type): Observable<boolean>

Parameters

NameType
typeTrainingType

Returns

Observable<boolean>

Defined in

libs/sdk-core/src/lib/db/training/training.ts:36


start

start(type, params?): Observable<TrainingTask>

Parameters

NameType
typeTrainingType
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

NameType
typeTrainingType

Returns

Observable<TrainingTask>

Defined in

libs/sdk-core/src/lib/db/training/training.ts:22