You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Richard Zowalla (Jira)" <ji...@apache.org> on 2026/09/18 17:06:00 UTC
[jira] [Closed] (OPENNLP-1928) RegEx removal part 1: Deterministic text scans replace trivial regular expressions
[ https://issues.apache.org/jira/browse/OPENNLP-1928?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Richard Zowalla closed OPENNLP-1928.
------------------------------------
Resolution: Fixed
Fixed by https://github.com/apache/opennlp/pull/1311 (4cce2c59c).
> RegEx removal part 1: Deterministic text scans replace trivial regular expressions
> -----------------------------------------------------------------------------------
>
> Key: OPENNLP-1928
> URL: https://issues.apache.org/jira/browse/OPENNLP-1928
> Project: OpenNLP
> Issue Type: Improvement
> Reporter: Kristian Rickert
> Assignee: Kristian Rickert
> Priority: Major
> Fix For: 2.5.13, 3.0.0
>
> Time Spent: 3h 20m
> Remaining Estimate: 0h
>
> Regex isn't compatible with the correct whitespace characters and punctuation marks. Every language's parser slightly changes. This ticket focuses on all the trivial spots we found regex:
>
> ||Site||Pattern removed||
> |{{DefaultPOSContextGenerator}}, {{DefaultLemmatizerContextGenerator}}|{{[A-Z]}}, {{[0-9]}} capital and digit detection|
> |{{FeatureGeneratorUtil}}|{{^[A-ZÄÖÜ]\.$}} capital-period check|
> |{{TokenPatternFeatureGenerator}}|{{[^a-zA-Z]}} non-letter check|
> |{{BioCodec}}, {{NameFinderME}}|{{(.+)-\w+}} typed-outcome split|
> |{{BrownCluster}}|tab split|
> |{{TokenSampleStream}}|{{\s+}} split and {{[A-Za-z0-9]}} check|
> |{{EmojiCharSequenceNormalizer}}|surrogate-range emoji pattern|
> |{{ConlluStream}}|token-id split on {{-}} and {{text_([a-z]\{2,3\})}} language comment|
> |{{ParserTool}}|the two untokenized-bracket spacing patterns|
> |{{DownloadUtil}}|checksum-line split and the {{<a href>}} link pattern|
> |{{ADNameSampleStream}}|tag, whitespace, underscore, hyphen, and alphanumeric patterns|
> |{{ADPOSSampleStream}}, {{ADSentenceSampleStream}}, {{ADSentenceStream}}|whitespace, metadata, and punctuation patterns|
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)