react-pdf-ner-annotator
Version:
A React component to annotate named entities directly onto a PDF.
13 lines (12 loc) • 507 B
TypeScript
/// <reference types="react" />
import { Annotation } from '../interfaces/annotation';
import { IEntityHover } from '../interfaces/entity';
interface AnnotationContextProps {
annotations: Array<Annotation>;
removeAnnotation: (id: number) => void;
updateAnnotation: (annotation: Annotation) => void;
tokenizer: RegExp;
hoveredEntities?: Array<IEntityHover>;
}
declare const AnnotationContext: import("react").Context<AnnotationContextProps>;
export default AnnotationContext;