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

Add some missing extract ops #207

Merged
merged 4 commits into from
Jun 12, 2021
Merged

Add some missing extract ops #207

merged 4 commits into from
Jun 12, 2021

Conversation

frreiss
Copy link
Member

@frreiss frreiss commented Jun 10, 2021

While working on a blog post, I noticed that we are missing some variants of the extract operator from spanner algebra:

  • extract_regex: return all matches of a character-based regex
  • extract_split: Split the document into spans according to a set of split points

This PR implements those two operations and adds appropriate tests.

@frreiss frreiss requested a review from BryanCutler June 10, 2021 21:33
Copy link
Member

@BryanCutler BryanCutler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just noticed one possible typo. Looks cool!

text_extensions_for_pandas/spanner/extract.py Outdated Show resolved Hide resolved
@BryanCutler BryanCutler merged commit 6a9b68c into CODAIT:master Jun 12, 2021
@frreiss frreiss deleted the branch-rsm branch October 29, 2021 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants