mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 18:38:26 +00:00
Fix logging in tests
This commit is contained in:
@ -17,10 +17,11 @@ import fs2.io.file.Files
|
||||
|
||||
import docspell.analysis.classifier.TextClassifier.Data
|
||||
import docspell.common._
|
||||
import docspell.logging.TestLoggingConfig
|
||||
|
||||
import munit._
|
||||
|
||||
class StanfordTextClassifierSuite extends FunSuite {
|
||||
class StanfordTextClassifierSuite extends FunSuite with TestLoggingConfig {
|
||||
val logger = docspell.logging.getLogger[IO]
|
||||
|
||||
test("learn from data") {
|
||||
|
@ -10,10 +10,11 @@ import docspell.analysis.Env
|
||||
import docspell.common.Language.NLPLanguage
|
||||
import docspell.common._
|
||||
import docspell.files.TestFiles
|
||||
import docspell.logging.TestLoggingConfig
|
||||
|
||||
import munit._
|
||||
|
||||
class BaseCRFAnnotatorSuite extends FunSuite {
|
||||
class BaseCRFAnnotatorSuite extends FunSuite with TestLoggingConfig {
|
||||
|
||||
def annotate(language: NLPLanguage): String => Vector[NerLabel] =
|
||||
BasicCRFAnnotator.nerAnnotate(BasicCRFAnnotator.Cache.getAnnotator(language))
|
||||
|
@ -14,11 +14,12 @@ import cats.effect.unsafe.implicits.global
|
||||
import docspell.analysis.Env
|
||||
import docspell.common._
|
||||
import docspell.files.TestFiles
|
||||
import docspell.logging.TestLoggingConfig
|
||||
|
||||
import edu.stanford.nlp.pipeline.StanfordCoreNLP
|
||||
import munit._
|
||||
|
||||
class StanfordNerAnnotatorSuite extends FunSuite {
|
||||
class StanfordNerAnnotatorSuite extends FunSuite with TestLoggingConfig {
|
||||
lazy val germanClassifier =
|
||||
new StanfordCoreNLP(Properties.nerGerman(None, false))
|
||||
lazy val englishClassifier =
|
||||
|
Reference in New Issue
Block a user