MarginaliaSearch/code/libraries/language-processing/java/nu/marginalia
Viktor Lofgren 7f7021ce64 (sentence-extractor) Fix resource leak in sentence extractor
The code would always re-initialize the static ngramLexicon and rdrposTagger fields with new instances even if they were already instantiated, leading to a ton of unnecessary RAM allocation.

The modified behavior checks for nullity before creating a new instance.
2024-04-05 18:52:58 +02:00
..
language (sentence-extractor) Fix resource leak in sentence extractor 2024-04-05 18:52:58 +02:00