edsnlp.utils.inclusion
check_inclusion
Checks whether the span overlaps the boundaries.
Parameters
PARAMETER | DESCRIPTION |
---|---|
span | Span to check. TYPE: |
start | Start of the boundary TYPE: |
end | End of the boundary TYPE: |
RETURNS | DESCRIPTION |
---|---|
bool | Whether the span overlaps the boundaries. |
check_sent_inclusion
Checks whether the span overlaps the boundaries.
Parameters
PARAMETER | DESCRIPTION |
---|---|
span | Span to check. TYPE: |
start | Start of the boundary TYPE: |
end | End of the boundary TYPE: |
RETURNS | DESCRIPTION |
---|---|
bool | Whether the span overlaps the boundaries. |