[
https://issues.apache.org/jira/browse/OPENNLP-1266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tim Allison updated OPENNLP-1266:
---------------------------------
Description:
The {{MAIL_REGEX}} in UrlCharSequenceNormalizer is unbounded and requires
backtracking. In rare cases, this can cause eye-opening performance costs.
I tested the other regexes in the other normalizers. I could be wrong, but
they don't appear to require backtracking, and there are no surprising
performance costs.
was:Several of the normalizer regexes are not bounded. In rare cases, this
can cause eye-opening performance costs.
> Limit normalization regexes in UrlCharSequenceNormalizer
> --------------------------------------------------------
>
> Key: OPENNLP-1266
> URL: https://issues.apache.org/jira/browse/OPENNLP-1266
> Project: OpenNLP
> Issue Type: Task
> Reporter: Tim Allison
> Priority: Major
>
> The {{MAIL_REGEX}} in UrlCharSequenceNormalizer is unbounded and requires
> backtracking. In rare cases, this can cause eye-opening performance costs.
>
> I tested the other regexes in the other normalizers. I could be wrong, but
> they don't appear to require backtracking, and there are no surprising
> performance costs.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)