You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by GitBox <gi...@apache.org> on 2026/09/07 12:12:17 UTC

[GH] (opennlp/OPENNLP-1931-dl-json-scan): Workflow run "Java CI" is working again!

The GitHub Actions job "Java CI" on opennlp.git/OPENNLP-1931-dl-json-scan has succeeded.
Run started by GitHub user krickert (triggered by krickert).

Head commit for run:
9ba4095614e0f8def0a68233374d901b2078d2f4 / Kristian Rickert <kr...@apache.org>
OPENNLP-1931: Scan id2label without a pattern

DocumentCategorizerConfig.fromJson used a DOTALL pattern to cut the
text between the brace after "id2label" and the first closing brace,
and a second pattern to pull "key": "value" pairs out of that text with
the key running to the next quote and the value, lazily, to the next
quote on the same line. Both are now cursor scans over JsonScan: the
key literal is located with indexOf and retried at the next occurrence
when no colon and brace follow it, the content ends at the first
closing brace even when that brace belongs to a nested value, and the
entry loop resumes after a matched value or at the character after a
quote that opened no entry. The parameterized tests pin the nested
brace cut, a brace inside a value, a missing or non-object id2label,
whitespace and newlines around colons, an escaped quote inside a
value, a value spanning a line, an empty key, a numeric value, an
overlapping key literal, and supplementary-plane keys and values.

Report URL: https://github.com/apache/opennlp/actions/runs/34116063538

With regards,
GitHub Actions via GitBox