This PR refines the adjustableSpanCalculator to use a single offsetMagnitude for span calculation. It simplifies the logic by calculating the startOffset and endIdx based on a default offsetMagnitude, which can be overridden by detector-specific implementations.
Checklist:
[ ] Tests passing (make test-community)?
[ ] Lint passing (make lint this requires golangci-lint)?
Description:
This PR refines the
adjustableSpanCalculator
to use a singleoffsetMagnitude
for span calculation. It simplifies the logic by calculating thestartOffset
andendIdx
based on a defaultoffsetMagnitude
, which can be overridden by detector-specific implementations.Checklist:
make test-community
)?make lint
this requires golangci-lint)?