MarginaliaSearch/third-party/monkey-patch-opennlp
Viktor Lofgren 4668b1ddcb (build) Java 22 and its consequences has been a disaster for Marginalia Search
Roll back to JDK 21 for now, and make Java version configurable in the root build.gradle

The project has run into no less than three distinct show-stopping bugs in JDK22, across multiple vendors, and gradle still doesn't fully support it, meaning you need multiple JDK versions installed.
2024-04-24 13:54:04 +02:00
..
src/main/java/opennlp/tools/sentdetect The refactoring will continue until morale improves. 2023-03-12 10:04:48 +01:00
build.gradle (build) Java 22 and its consequences has been a disaster for Marginalia Search 2024-04-24 13:54:04 +02: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.