[ 
https://issues.apache.org/jira/browse/OPENNLP-1892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Wiesner updated OPENNLP-1892:
------------------------------------
    Fix Version/s: 3.0.0-M5

> 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
>    Affects Versions: 3.0.0-M4
>            Reporter: Subbu
>            Assignee: Jeff Zemerick
>            Priority: Major
>             Fix For: 3.0.0-M5
>
>          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)

Reply via email to