You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Martin Wiesner (Jira)" <ji...@apache.org> on 2026/07/19 18:09:00 UTC
[jira] [Assigned] (OPENNLP-1892) Precompile Tag patterns to avoid repeated pattern compilation
[ https://issues.apache.org/jira/browse/OPENNLP-1892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Wiesner reassigned OPENNLP-1892:
---------------------------------------
Assignee: Jeff Zemerick
> Precompile Tag patterns to avoid repeated pattern compilation
> -------------------------------------------------------------
>
> Key: OPENNLP-1892
> URL: https://issues.apache.org/jira/browse/OPENNLP-1892
> Project: OpenNLP
> Issue Type: Improvement
> Reporter: Subbu
> Assignee: Jeff Zemerick
> Priority: Major
> Time Spent: 40m
> Remaining Estimate: 0h
>
> AncoraSpanishHeadRules.java does String.matches(regex) which internally calls Pattern.compile(regex) fresh on *every single call.* A simple branching parse tree could trigger dozens to hundreds of redundant Pattern.compile() calls per sentence, all compiling the same handful of patterns repeatedly
--
This message was sent by Atlassian Jira
(v8.20.10#820010)