You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by rz...@apache.org on 2026/09/18 12:14:49 UTC

(opennlp) branch OPENNLP-1937-text-embedder-api updated (b1520f40a -> ef8bf519b)

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

rzo1 pushed a change to branch OPENNLP-1937-text-embedder-api
in repository https://gitbox.apache.org/repos/asf/opennlp.git


 discard b1520f40a OPENNLP-1937: Resolve text embedders through the provider SPI
 discard 624edaeff OPENNLP-1937: Select embedding providers by capability and priority instead of a fixed name
 discard cf58bd82d OPENNLP-1937: Discover embedding providers through SPI
 discard 5cdc05bae OPENNLP-1937: Expose text embeddings as a generic interface
     add d32d4d84e Minor: Regenerated NOTICE File for 9f60bf305798e2b07d5b13fc2207a594ce965624 (#1309)
     add c47eeafef OPENNLP-1973: Regex removal (prep): Add a CompatibilityMode switch for the earlier output (#1312)
     add b869c65b9 OPENNLP-1937: Expose text embeddings as a generic interface
     add 214fd57ef OPENNLP-1937: Discover embedding providers through SPI
     add 895a2bbbc OPENNLP-1937: Select embedding providers by capability and priority instead of a fixed name
     add f45434810 OPENNLP-1937: Resolve text embedders through the provider SPI
     add ef8bf519b OPENNLP-1937: Settle the TextEmbedder contract and the ONNX embedder defaults

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   (b1520f40a)
            \
             N -- N -- N   refs/heads/OPENNLP-1937-text-embedder-api (ef8bf519b)

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:
 .gitignore                                         |   3 +-
 NOTICE                                             |   1 +
 .../EmbeddingException.java}                       |  18 +-
 .../opennlp/tools/embeddings/TextEmbedder.java     |  51 ++-
 .../java/opennlp/tools/util/CompatibilityMode.java | 134 +++++++
 .../opennlp/tools/embeddings/TextEmbedderTest.java |  27 ++
 .../opennlp/tools/util/CompatibilityModeTest.java  | 126 +++++++
 .../dl/vectors/OnnxTextEmbedderProvider.java       |  98 +++++-
 .../dl/{Tokens.java => vectors/Pooling.java}       |  18 +-
 .../java/opennlp/dl/vectors/SentenceVectorsDL.java | 385 ++++++++++++++-------
 .../dl/vectors/OnnxTextEmbedderProviderTest.java   |   6 +
 .../dl/vectors/SentenceVectorsDLEmbedderTest.java  | 148 ++++++--
 .../opennlp/dl/vectors/gen_tiny_pooled_model.py    |  98 ++++++
 .../resources/opennlp/dl/vectors/tiny-pooled.onnx  | Bin 0 -> 513 bytes
 opennlp-distr/src/main/readme/NOTICE               |   1 +
 opennlp-docs/src/docbkx/machine-learning.xml       |  13 +-
 .../opennlp/dl/vectors/SentenceVectorsDLEval.java  |  16 +-
 rat-excludes                                       |   3 +-
 18 files changed, 956 insertions(+), 190 deletions(-)
 copy opennlp-api/src/main/java/opennlp/tools/{util/ext/AmbiguousProviderException.java => embeddings/EmbeddingException.java} (67%)
 create mode 100644 opennlp-api/src/main/java/opennlp/tools/util/CompatibilityMode.java
 create mode 100644 opennlp-api/src/test/java/opennlp/tools/util/CompatibilityModeTest.java
 copy opennlp-core/opennlp-ml/opennlp-dl/src/main/java/opennlp/dl/{Tokens.java => vectors/Pooling.java} (69%)
 create mode 100644 opennlp-core/opennlp-ml/opennlp-dl/src/test/resources/opennlp/dl/vectors/gen_tiny_pooled_model.py
 create mode 100644 opennlp-core/opennlp-ml/opennlp-dl/src/test/resources/opennlp/dl/vectors/tiny-pooled.onnx