Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement REPP masking #331

Closed
goodmami opened this issue Jul 11, 2021 · 0 comments
Closed

Implement REPP masking #331

goodmami opened this issue Jul 11, 2021 · 0 comments
Milestone

Comments

@goodmami
Copy link
Member

The latest ERG makes use of the new 'mask' operator (=) for REPP, as described in the email thread starting here:

http://lists.delph-in.net/archives/developers/2020/003107.html

Essentially, substrings matching a mask pattern are prevented from further modification. For example, the following masks email addresses such that later punctuation-splitting rules do not break up email addresses:

=<?[\p{L}\p{N}._-]+@[\p{L}\p{N}_-]+(?:\.[\p{L}\p{N}_-]+)*\.[\p{L}\p{N}]+>?

Masked sections can be tracked with a BIO sequential-tagging scheme so adjacent masks work even when content is inserted between them.

@goodmami goodmami added this to the v1.6.0 milestone Jul 11, 2021
goodmami added a commit that referenced this issue Sep 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant