mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Always return classifier results as suggestion
The classifier results are spliced into the suggestion list at second place. When linking they are only used if nlp didn't find anything.
This commit is contained in:
@ -26,6 +26,7 @@ object LearnClassifierTask {
|
||||
): Task[F, Args, Unit] =
|
||||
learnTags(cfg, analyser)
|
||||
.flatMap(_ => learnItemEntities(cfg, analyser))
|
||||
.flatMap(_ => Task(_ => Sync[F].delay(System.gc())))
|
||||
|
||||
private def learnItemEntities[F[_]: Sync: ContextShift](
|
||||
cfg: Config.TextAnalysis,
|
||||
|
Reference in New Issue
Block a user