Closed ahmetaa closed 5 years ago
The fastest -albeit memory inefficient- way of doing this is to generate a separate TurkishMorphology instance per different mode.
I am closing this as there is no easy solution for this. Having separate caches per TurkishMorphology instance is ok.
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.