UNPKG

poplar-annotation

Version:

web-based annotation tool for natural language processing (NLP) needs, inspired by brat rapid annotation tool.

26 lines (25 loc) 961 B
import { IAction } from "./IAction"; import { Store } from "../Store/Store"; export declare namespace Label { class CreateLabelAction implements IAction { readonly categoryId: number; readonly startIndex: number; readonly endIndex: number; constructor(categoryId: number, startIndex: number, endIndex: number); apply(store: Store): void; } function Create(categoryId: number, startIndex: number, endIndex: number): CreateLabelAction; class DeleteLabelAction implements IAction { id: number; constructor(id: number); apply(store: Store): void; } function Delete(id: number): DeleteLabelAction; class UpdateLabelAction implements IAction { labelId: number; categoryId: number; constructor(labelId: number, categoryId: number); apply(store: Store): void; } function Update(labelId: number, categoryId: number): UpdateLabelAction; }