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

upgrade LabeledSpanLengthCollector to SpanLengthCollector #352

Merged
merged 3 commits into from
Sep 27, 2023

Conversation

ArneBinder
Copy link
Owner

This PR upgrades LabeledSpanLengthCollector to SpanLengthCollector:

  • make labels optional and inferrable,
  • add tokenization capability

IMPORTANT NOTE (similar to #351): Inferring labels produces wrong results for certain aggregation_functions such as min, mean, and std because documents with zero entries of a certain label are not considered anymore for that label. We remove these from aggregation_functions if labels == "INFERRED", but we can not handle any user defined function (which relies on correct zero values).

@ArneBinder ArneBinder force-pushed the span_length_collector branch from 7ef15d7 to ad4797e Compare September 27, 2023 12:56
@ArneBinder ArneBinder merged commit d38c796 into main Sep 27, 2023
@ArneBinder ArneBinder deleted the span_length_collector branch September 27, 2023 13:32
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