UNPKG

poplar-annotation

Version:

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

20 lines (19 loc) 794 B
import { EventEmitter } from 'events'; import { Store } from "./Store/Store"; import { View } from "./View/View"; import { Dispatcher } from "./Dispatcher/Dispatcher"; import { Action } from "./Action/Action"; import { TextSelectionHandler } from "./View/EventHandler/TextSelectionHandler"; import { TwoLabelsClickedHandler } from "./View/EventHandler/TwoLabelsClickedHandler"; export declare class Annotator extends EventEmitter { private htmlElement; config?: object; store: Store; view: View; dispatcher: Dispatcher; textSelectionHandler: TextSelectionHandler; twoLabelsClickedHandler: TwoLabelsClickedHandler; constructor(data: string | object, htmlElement: HTMLElement, config?: object); applyAction(action: Action.IAction): void; remove(): void; }