UNPKG

poplar-annotation

Version:

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

15 lines (14 loc) 390 B
import { Annotator } from "../../Annotator"; export interface Config { readonly selectingAreaStrip: RegExp | null | undefined; } export declare class TextSelectionHandler { root: Annotator; private config; constructor(root: Annotator, config: Config); getSelectionInfo(): { startIndex: number; endIndex: number; } | null; textSelected(): void; }