skillner.core.Span#
- class skillner.core.Span[source]#
- Span class that stores all candidates of matching. - A span extends from the most-left to most-right candidates. - Attributes:
- window: slice
- A slice that delimits the span from the most-left to most-right candidate. 
- start: int
- The index of the first word in the most-left candidate. 
- end: int
- The index of the last word in the most-right candidate. 
 
 - Methods - __init__()- add_candidate(candidate)- Add candidate to existing candidates and update span window. - is_empty()- Return whether the span is empty. - Attributes - window