ahmetaa / zemberek-nlp

NLP tools for Turkish.
Other
1.14k stars 207 forks source link

Informal Analysis or ascii tolerant analysis causes morphology cache inconsistency. #186

Closed ahmetaa closed 5 years ago

ahmetaa commented 5 years ago

Cache is not aware of analyzer behavior changes, or different analyzers. If an application uses different analyzers or modes, cache will only hold one type of analysis. Static cache behaves the same. There may not be an easy fix for this.

ahmetaa commented 5 years ago

The fastest -albeit memory inefficient- way of doing this is to generate a separate TurkishMorphology instance per different mode.

ahmetaa commented 5 years ago

I am closing this as there is no easy solution for this. Having separate caches per TurkishMorphology instance is ok.