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

Martin Wiesner updated OPENNLP-1892:
------------------------------------
    Summary: Precompile Tag patterns to avoid repeated pattern compilation  
(was: Uncached Pattern Compilations)

> 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
>            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)

Reply via email to