Early draft for text extraction

This commit is contained in:
Eike Kettner
2020-02-17 01:57:22 +01:00
parent 1a5546fe99
commit 3d615181e0
22 changed files with 287 additions and 45 deletions

View File

@ -3,7 +3,7 @@ package docspell.joex
import docspell.common.{Ident, LenientUri}
import docspell.joex.scheduler.SchedulerConfig
import docspell.store.JdbcConfig
import docspell.extract.ocr.{Config => OcrConfig}
import docspell.extract.ocr.{OcrConfig => OcrConfig}
import docspell.convert.ConvertConfig
case class Config(

View File

@ -7,7 +7,7 @@ import docspell.common._
import docspell.joex.scheduler.{Context, Task}
import docspell.store.Store
import docspell.store.records.{RAttachment, RAttachmentMeta}
import docspell.extract.ocr.{TextExtract, Config => OcrConfig}
import docspell.extract.ocr.{TextExtract, OcrConfig => OcrConfig}
object TextExtraction {

View File

@ -3,7 +3,7 @@ package docspell.joex.scheduler
import cats.Functor
import cats.effect.{Blocker, Concurrent}
import cats.implicits._
import docspell.common.Ident
import docspell.common._
import docspell.store.Store
import docspell.store.records.RJob
import docspell.common.syntax.all._

View File

@ -5,17 +5,6 @@ import cats.effect.{Concurrent, Sync}
import docspell.common._
import fs2.concurrent.Queue
trait Logger[F[_]] {
def trace(msg: => String): F[Unit]
def debug(msg: => String): F[Unit]
def info(msg: => String): F[Unit]
def warn(msg: => String): F[Unit]
def error(ex: Throwable)(msg: => String): F[Unit]
def error(msg: => String): F[Unit]
}
object Logger {
def create[F[_]: Sync](jobId: Ident, jobInfo: String, q: Queue[F, LogEvent]): Logger[F] =