MarginaliaSearch/third-party/monkey-patch-opennlp
Viktor Lofgren fe8d583fdd (sys) Upgrade to JDK22
This also entails upgrading JIB to 3.4.1 and Lombok to 1.18.32.
2024-03-21 14:27:13 +01:00
..
src/main/java/opennlp/tools/sentdetect The refactoring will continue until morale improves. 2023-03-12 10:04:48 +01:00
build.gradle (sys) Upgrade to JDK22 2024-03-21 14:27:13 +01:00
readme.md The refactoring will continue until morale improves. 2023-03-12 10:04:48 +01:00

Monkey Patched OpenNLP

Stanford OpenNLP - Apache-2.0

Rationale

OpenNLP's sentence detector uses a slow StringBuffer instead of a StringBuilder where it makes no no sense to do so. This makes it much slower than it needs to be. I've found no way to file issues with the project to get it fixed. Instead we're doing this monkey patch where the class is overridden with something better.