mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Update fs2-core, fs2-io to 2.5.4
This commit is contained in:
committed by
Eike Kettner
parent
e8f61c67d0
commit
144ea852bf
@ -37,7 +37,7 @@ object TextAnalyser {
|
||||
blocker: Blocker
|
||||
): Resource[F, TextAnalyser[F]] =
|
||||
Resource
|
||||
.liftF(Nlp(cfg.nlpConfig))
|
||||
.eval(Nlp(cfg.nlpConfig))
|
||||
.map(stanfordNer =>
|
||||
new TextAnalyser[F] {
|
||||
def annotate(
|
||||
|
@ -47,8 +47,8 @@ object PipelineCache {
|
||||
def obtain(key: String, settings: NlpSettings): Resource[F, Annotator[F]] =
|
||||
for {
|
||||
_ <- cacheClear.withCache
|
||||
id <- Resource.liftF(makeSettingsId(settings))
|
||||
nlp <- Resource.liftF(
|
||||
id <- Resource.eval(makeSettingsId(settings))
|
||||
nlp <- Resource.eval(
|
||||
data.modify(cache => getOrCreate(key, id, cache, settings, creator))
|
||||
)
|
||||
} yield nlp
|
||||
|
Reference in New Issue
Block a user