You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by kr...@apache.org on 2026/10/11 01:55:20 UTC

(opennlp) branch OPENNLP-1982-sentence-vectors-inference-options updated (fb06aefd7 -> 576206d29)

This is an automated email from the ASF dual-hosted git repository.

krickert pushed a change to branch OPENNLP-1982-sentence-vectors-inference-options
in repository https://gitbox.apache.org/repos/asf/opennlp.git


    omit fb06aefd7 OPENNLP-1982: Keep the Javadoc of the CUDA changes to the contract
    omit a9d0437db SentenceVectorsDL cannot run on a GPU
    omit 83d40b389 GPU inference fails on the first CUDA request in a fresh JVM
     add 84a1d6268 GH-1460: Match escaped tags in the bundled Spanish head rules (#1461)
     add e286928a1 GH-1458: Parse name-finder tags and parse-tree strings without regular expressions (#1459)
     add a6f19f91e GH-1449: Align DocumentCategorizerDLEval with the shared ONNX failure message (#1463)
     add 46d9d96a1 GH-1456: Tighten normalizer, tokenizer, introduction and language detector chapters (#1457)
     add 7a560bd7a OPENNLP-1935: Regex removal (10/10): Forbid java.util.regex in production code (#1348)
     add 576206d29 GH-1389, GH-1390: Let SentenceVectorsDL run on a GPU and fix the first CUDA request in a fresh JVM

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (fb06aefd7)
            \
             N -- N -- N   refs/heads/OPENNLP-1982-sentence-vectors-inference-options (576206d29)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

No new revisions were added by this update.

Summary of changes:
 .github/CONTRIBUTING.md                            |  14 ++
 dev/forbidden-regex.txt                            |  30 +++
 .../opennlp/tools/commons/SuppressForbidden.java   |  51 +++++
 .../java/opennlp/tools/namefind/NameSample.java    |  50 ++++-
 .../src/main/java/opennlp/tools/parser/Parse.java  | 109 +++++++---
 .../main/java/opennlp/tools/util/StringUtil.java   |  72 +++++--
 .../tools/util/StringUtilSplitNonEmptyTest.java    |   7 +-
 .../java/opennlp/tools/util/StringUtilTest.java    |  66 +++++-
 .../java/opennlp/dl/vectors/SentenceVectorsDL.java |   6 +
 .../opennlp/dl/AbstractDLColdStartCudaTest.java    |   7 +
 .../test/java/opennlp/dl/ColdStartCudaProbe.java   |   4 +-
 .../src/test/java/opennlp/dl/GpuRequestTest.java   | 112 +++++++++++
 .../dl/vectors/OnnxTextEmbedderProviderTest.java   |  11 +
 .../SentenceVectorsDLInferenceOptionsTest.java     | 222 ++++++++++++++++++++-
 .../opennlp/tools/namefind/RegexNameFinder.java    |   8 +
 .../tools/namefind/RegexNameFinderFactory.java     |   6 +
 .../parser/lang/es/AncoraSpanishHeadRules.java     |  13 +-
 .../tools/stemmer/hunspell/HunspellDictionary.java |  29 +--
 .../opennlp/tools/tokenize/TokSpanEventStream.java |   4 +
 .../opennlp/tools/tokenize/TokenizerFactory.java   |   7 +
 .../java/opennlp/tools/tokenize/TokenizerME.java   |   3 +
 .../java/opennlp/tools/tokenize/lang/Factory.java  |  34 +++-
 .../opennlp/tools/namefind/NameSampleTest.java     |  67 +++++++
 .../test/java/opennlp/tools/parser/ParseTest.java  | 181 +++++++++++++++++
 .../lang/es/AncoraSpanishHeadRulesBundledTest.java | 147 ++++++++++++++
 .../resources/opennlp/tools/parser/es_head_rules   |  22 ++
 opennlp-docs/src/docbkx/introduction.xml           |  47 ++---
 opennlp-docs/src/docbkx/langdetect.xml             |  13 +-
 opennlp-docs/src/docbkx/machine-learning.xml       |  16 ++
 opennlp-docs/src/docbkx/namefinder.xml             |   2 +-
 opennlp-docs/src/docbkx/normalizer.xml             |  80 ++++----
 opennlp-docs/src/docbkx/tokenizer.xml              |  63 +++---
 opennlp-eval-tests/lang/es/parser/es-head-rules    |  24 +--
 .../dl/doccat/DocumentCategorizerDLEval.java       |   3 +-
 opennlp-tools/lang/es/parser/es-head-rules         |  24 +--
 pom.xml                                            |  19 ++
 rat-excludes                                       |   1 +
 37 files changed, 1341 insertions(+), 233 deletions(-)
 create mode 100644 dev/forbidden-regex.txt
 create mode 100644 opennlp-api/src/main/java/opennlp/tools/commons/SuppressForbidden.java
 create mode 100644 opennlp-core/opennlp-ml/opennlp-dl/src/test/java/opennlp/dl/GpuRequestTest.java
 create mode 100644 opennlp-core/opennlp-runtime/src/test/java/opennlp/tools/parser/lang/es/AncoraSpanishHeadRulesBundledTest.java
 create mode 100644 opennlp-core/opennlp-runtime/src/test/resources/opennlp/tools/parser/es_head_rules