You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by "krickert (via GitHub)" <gi...@apache.org> on 2026/10/11 16:50:09 UTC
[I] Regex Hunting II: Match AnCora Spanish head-rule tags without regular expressions (opennlp)
krickert opened a new issue, #1480:
URL: https://github.com/apache/opennlp/issues/1480
`AncoraSpanishHeadRules` compiles each head-rule tag into a `java.util.regex Pattern` and is exempt from the regex check added in #1348. The tags in the rules file use a small grammar: literal tags, prefixes and alternatives.
Each tag should be parsed once when the rules load into a literal or prefix matcher, and a tag outside that grammar should fail to load with an error naming the line. The bundled Spanish rules move to a rules format without regex escapes, and existing rules files in the old format still load.
The bundled rules must keep selecting the same heads, and the class no longer needs @SuppressForbidden.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opennlp.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Regex Hunting II: Match AnCora Spanish head-rule tags without regular expressions (opennlp)
Posted by "krickert (via GitHub)" <gi...@apache.org>.
krickert closed issue #1480: Regex Hunting II: Match AnCora Spanish head-rule tags without regular expressions
URL: https://github.com/apache/opennlp/issues/1480
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opennlp.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org