(window: int, stride: int)
return partial(get_strided_spans, window=window, stride=stride)
Set the 'window' and 'stride' options for getting strided spans.

    If you set the window and stride to the same value, the spans will cover
    each token once. Setting 'stride' lower than 'window' will allow for an
    overlap, so that some tokens are counted twice. This can be desirable,
    because it allows all tokens to have both a left and right context.
Set the 'window' and 'stride' options for getting strided spans.
Set the window and stride options for getting strided spans .
def configure_strided_spans(window: int, stride: int) -> SpannerT:
    """
    Set the 'window' and 'stride' options for getting strided spans.

    If you set the window and stride to the same value, the spans will cover
    each token once. Setting 'stride' lower than 'window' will allow for an
    overlap, so that some tokens are counted twice. This can be desirable,
    because it allows all tokens to have both a left and right context.
    """
    return partial(get_strided_spans, window=window, stride=stride)
def configure_strided_spans ( window : int , stride : int ) -> SpannerT : return partial ( get_strided_spans , window = window , stride = stride )