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 operators: RegexSplit, TokensSplit, Chunk #749

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

elronbandel
Copy link
Member

Usage examples:

Chunk(field="x", size=2)
RegexSplit(field="text", by=r"([\s,!?]+)")
TokensSplit(field="text", model="bert-base-uncased")

All the examples above has input-output examples in the tests.

Signed-off-by: Elron Bandel <elron.bandel@ibm.com>
Copy link

codecov bot commented Apr 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.18%. Comparing base (422212f) to head (95e7258).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #749      +/-   ##
==========================================
+ Coverage   91.15%   91.18%   +0.02%     
==========================================
  Files          98       98              
  Lines        9968    10001      +33     
==========================================
+ Hits         9086     9119      +33     
  Misses        882      882              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@elronbandel elronbandel merged commit 46fa38f into main Apr 4, 2024
8 checks passed
@elronbandel elronbandel deleted the add-custom-splitting-operators branch April 4, 2024 09:35
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.

1 participant