poplar-annotation
Version:
web-based annotation tool for natural language processing (NLP) needs, inspired by brat rapid annotation tool.
21 lines (20 loc) • 899 B
TypeScript
/// <reference types="node" />
import { EventEmitter } from "events";
import { Store } from "./Store/Store";
import { View } from "./View/View";
import { ConfigInput } from "./Config";
import { TextSelectionHandler } from "./View/EventHandler/TextSelectionHandler";
import { TwoLabelsClickedHandler } from "./View/EventHandler/TwoLabelsClickedHandler";
import { IAction } from "./Action/IAction";
export declare class Annotator extends EventEmitter {
private containerElement;
readonly configInput?: ConfigInput | undefined;
readonly store: Store;
readonly view: View;
readonly textSelectionHandler: TextSelectionHandler;
readonly twoLabelsClickedHandler: TwoLabelsClickedHandler;
constructor(data: string | object, containerElement: HTMLElement, configInput?: ConfigInput | undefined);
applyAction(action: IAction): void;
export(): string;
remove(): void;
}