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

SPARKNLP-621: Add string support to RegexMatcher in addition to a file #13060

Conversation

DevinTDHa
Copy link
Member

@DevinTDHa DevinTDHa commented Nov 9, 2022

Description

This PR adds the feature to define strings instead of files to the RegexMatcher annotator. This will enable users to
prototype faster, especially on cloud environments.

Resolves #12824.

Changes

  • new parameter rules where users can provide an array of rules
  • new parameter delimiter to split the rules

Motivation and Context

How Has This Been Tested?

New and old tests passing.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • Code improvements with no or little impact
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

- new parameter rules where users can provide an array of rules
- new parameter delimiter to split the rules
@maziyarpanahi maziyarpanahi merged commit d7f561e into JohnSnowLabs:release/423-release-candidate Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement new-feature Introducing a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support RegexMatcher to take a String rather than the path to a file.
2 participants