remove npl

This commit is contained in:
m
2026-07-12 22:15:23 +02:00
parent 010cb2cb49
commit 3650b7ba9d
21 changed files with 8 additions and 478 deletions
-9
View File
@@ -17,7 +17,6 @@ type OCRJob struct {
type OCRService struct {
client *ocr.Client
fileSvc *FileService
nlpSvc *NLPService
jobs chan OCRJob
}
@@ -29,10 +28,6 @@ func NewOCRService(cfg *config.Config, fileSvc *FileService) *OCRService {
}
}
func (s *OCRService) SetNLPService(nlpSvc *NLPService) {
s.nlpSvc = nlpSvc
}
func (s *OCRService) Start() {
go s.worker()
log.Println("[OCR] Worker started")
@@ -77,10 +72,6 @@ func (s *OCRService) process(job OCRJob) {
}
log.Printf("[OCR] Completed file %s (%d chars)", job.FileID, len(text))
if s.nlpSvc != nil {
s.nlpSvc.Enqueue(job.FileID, job.FilePath, text)
}
}
func (s *OCRService) RecognizeFromBytes(data []byte) ([]ocr.TextBlock, error) {