You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by ma...@apache.org on 2025/07/08 12:01:19 UTC
(opennlp) branch OPENNLP-1753-Switch-to-Models-v1.3-add-to-DownloadUtil created (now 414c19ec)
This is an automated email from the ASF dual-hosted git repository.
mawiesne pushed a change to branch OPENNLP-1753-Switch-to-Models-v1.3-add-to-DownloadUtil
in repository https://gitbox.apache.org/repos/asf/opennlp.git
at 414c19ec OPENNLP-1753: Switch to Models v1.3 - adds missing newly supported lang codes to DownloadUtil's internal map
This branch includes the following new commits:
new 414c19ec OPENNLP-1753: Switch to Models v1.3 - adds missing newly supported lang codes to DownloadUtil's internal map
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(opennlp) 01/01: OPENNLP-1753: Switch to Models v1.3 - adds missing newly supported lang codes to DownloadUtil's internal map
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
mawiesne pushed a commit to branch OPENNLP-1753-Switch-to-Models-v1.3-add-to-DownloadUtil
in repository https://gitbox.apache.org/repos/asf/opennlp.git
commit 414c19ec8ca5f7168c21106717cf0200562f4084
Author: Martin Wiesner <ma...@hs-heilbronn.de>
AuthorDate: Tue Jul 8 14:01:09 2025 +0200
OPENNLP-1753: Switch to Models v1.3
- adds missing newly supported lang codes to DownloadUtil's internal map
---
.../src/main/java/opennlp/tools/util/DownloadUtil.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/opennlp-core/opennlp-runtime/src/main/java/opennlp/tools/util/DownloadUtil.java b/opennlp-core/opennlp-runtime/src/main/java/opennlp/tools/util/DownloadUtil.java
index 4fb4e783..03f6f064 100644
--- a/opennlp-core/opennlp-runtime/src/main/java/opennlp/tools/util/DownloadUtil.java
+++ b/opennlp-core/opennlp-runtime/src/main/java/opennlp/tools/util/DownloadUtil.java
@@ -273,6 +273,8 @@ public class DownloadUtil {
addModel("nl", link, result);
} else if (link.contains("fr-ud")) { // French
addModel("fr", link, result);
+ } else if (link.contains("af-ud")) { // Afrikaans
+ addModel("af", link, result);
} else if (link.contains("bg-ud")) { // Bulgarian
addModel("bg", link, result);
} else if (link.contains("ca-ud")) { // Catalan
@@ -291,10 +293,16 @@ public class DownloadUtil {
addModel("et", link, result);
} else if (link.contains("eu-ud")) { // Basque
addModel("eu", link, result);
+ } else if (link.contains("fa-ud")) { // Persian
+ addModel("fa", link, result);
} else if (link.contains("fi-ud")) { // Finnish
addModel("fi", link, result);
+ } else if (link.contains("ga-ud")) { // Irish
+ addModel("ga", link, result);
} else if (link.contains("hy-ud")) { // Armenian
addModel("hy", link, result);
+ } else if (link.contains("id-ud")) { // Indonesian
+ addModel("id", link, result);
} else if (link.contains("is-ud")) { // Icelandic
addModel("is", link, result);
} else if (link.contains("ka-ud")) { // Georgian