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 17:07:09 UTC
(opennlp) branch OPENNLP-1946-url-normalizer updated (62fd146a8 -> 3a4085431)
This is an automated email from the ASF dual-hosted git repository.
rzo1 pushed a change to branch OPENNLP-1946-url-normalizer
in repository https://gitbox.apache.org/repos/asf/opennlp.git
discard 62fd146a8 OPENNLP-1946: Remove whole URLs in UrlCharSequenceNormalizer, keep the earlier output as LEGACY
discard df294d63f OPENNLP-1946: Add BoundedUrlCharSequenceNormalizer for complete URLs and document the limits of the default
omit 3ce9d4b1e OPENNLP-1928: Check StringUtil arguments with requireNonNullArg instead of a message constant
omit d23296d27 OPENNLP-1928: Split Brown cluster lines with StringUtil.split
omit 33581d0e1 OPENNLP-1928: Replace trivial regular expressions with character scans
add 89efde8d7 OPENNLP-1983: Enable GitHub issues and discussions (#1316)
add 6331d6e19 OPENNLP-1937: Expose text embeddings through the provider SPI (#1310)
add 4cce2c59c OPENNLP-1928: Regex removal (1/10): Replace trivial patterns with character scans (#1311)
add 7f2652093 OPENNLP-1946: Add BoundedUrlCharSequenceNormalizer for complete URLs and document the limits of the default
add 3a4085431 OPENNLP-1946: Remove whole URLs in UrlCharSequenceNormalizer, keep the earlier output as LEGACY
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 (62fd146a8)
\
N -- N -- N refs/heads/OPENNLP-1946-url-normalizer (3a4085431)
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:
.asf.yaml | 7 +
.gitignore | 3 +
.../EmbeddingException.java} | 18 +-
.../opennlp/tools/embeddings/TextEmbedder.java | 108 +++++++
.../TextEmbedderProvider.java} | 8 +-
.../opennlp/tools/embeddings/TextEmbedderTest.java | 82 +++++
.../dl/vectors/OnnxTextEmbedderProvider.java | 190 +++++++++++
.../dl/{Tokens.java => vectors/Pooling.java} | 18 +-
.../java/opennlp/dl/vectors/SentenceVectorsDL.java | 355 ++++++++++++++++++++-
.../opennlp.tools.embeddings.TextEmbedderProvider} | 2 +-
.../dl/vectors/OnnxTextEmbedderProviderTest.java | 93 ++++++
.../dl/vectors/SentenceVectorsDLEmbedderTest.java | 264 +++++++++++++++
.../opennlp/dl/vectors/gen_tiny_pooled_model.py | 98 ++++++
.../opennlp/dl/vectors/gen_tiny_vectors_model.py | 57 ++++
.../resources/opennlp/dl/vectors/tiny-pooled.onnx | Bin 0 -> 513 bytes
.../resources/opennlp/dl/vectors/tiny-vectors.onnx | Bin 0 -> 373 bytes
opennlp-docs/src/docbkx/machine-learning.xml | 37 +++
.../opennlp/dl/vectors/SentenceVectorsDLEval.java | 16 +-
rat-excludes | 4 +
19 files changed, 1319 insertions(+), 41 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/embeddings/TextEmbedder.java
copy opennlp-api/src/main/java/opennlp/tools/{document/DocumentAnnotatorProvider.java => embeddings/TextEmbedderProvider.java} (76%)
create mode 100644 opennlp-api/src/test/java/opennlp/tools/embeddings/TextEmbedderTest.java
create mode 100644 opennlp-core/opennlp-ml/opennlp-dl/src/main/java/opennlp/dl/vectors/OnnxTextEmbedderProvider.java
copy opennlp-core/opennlp-ml/opennlp-dl/src/main/java/opennlp/dl/{Tokens.java => vectors/Pooling.java} (69%)
copy opennlp-core/{opennlp-runtime/src/main/resources/META-INF/services/opennlp.tools.document.DocumentAnnotatorProvider => opennlp-ml/opennlp-dl/src/main/resources/META-INF/services/opennlp.tools.embeddings.TextEmbedderProvider} (94%)
create mode 100644 opennlp-core/opennlp-ml/opennlp-dl/src/test/java/opennlp/dl/vectors/OnnxTextEmbedderProviderTest.java
create mode 100644 opennlp-core/opennlp-ml/opennlp-dl/src/test/java/opennlp/dl/vectors/SentenceVectorsDLEmbedderTest.java
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/gen_tiny_vectors_model.py
create mode 100644 opennlp-core/opennlp-ml/opennlp-dl/src/test/resources/opennlp/dl/vectors/tiny-pooled.onnx
create mode 100644 opennlp-core/opennlp-ml/opennlp-dl/src/test/resources/opennlp/dl/vectors/tiny-vectors.onnx