react-pdf-ner-annotator
Version:
A React component to annotate named entities directly onto a PDF.
8 lines (7 loc) • 408 B
TypeScript
import { TextLayer, TextLayerItem, TextLayerType } from '../interfaces/textLayer';
import { Annotation } from '../interfaces/annotation';
declare const useTextMap: (annotations: Array<Annotation>) => {
textMap: TextLayer[];
addPageToTextMap: (page: number, pdfTextLayer: Array<TextLayerItem>, type: TextLayerType, confidence: number, tokenizer?: RegExp) => void;
};
export default useTextMap;