UNPKG

@thecodingwhale/cv-processor

Version:

CV Processor to extract structured data from PDF resumes using TypeScript

40 lines (39 loc) 1.08 kB
import { CVData, ProcessorOptions } from './types'; /** * Main CV Processor class to extract structured data from PDF resumes */ export declare class CVProcessor { private textExtractor; private sectionExtractor; private personalInfoExtractor; private educationExtractor; private experienceExtractor; private skillsExtractor; private accuracyCalculator; private verbose; private minAccuracyThreshold; /** * Initialize the CV processor */ constructor(options?: ProcessorOptions); /** * Process a CV PDF and extract structured information */ processCv(pdfPath: string): Promise<CVData>; /** * Save CV data to a JSON file */ saveToJson(cvData: CVData, outputPath: string): void; getModelInfo(): { provider: string; model: string; }; /** * Check if the CV meets the minimum accuracy threshold */ meetsAccuracyThreshold(cvData: CVData): boolean; /** * Set minimum accuracy threshold */ setMinAccuracyThreshold(threshold: number): void; }