MCPcopy Create free account
hub / github.com/SooLab/CGFormer / CharSpan

Class CharSpan

bert/tokenization_utils_base.py:105–114  ·  view source on GitHub ↗

Character span in the original string Args: start: index of the first character in the original string end: index of the character following the last character in the original string

Source from the content-addressed store, hash-verified

103
104
105class CharSpan(NamedTuple):
106 """ Character span in the original string
107
108 Args:
109 start: index of the first character in the original string
110 end: index of the character following the last character in the original string
111 """
112
113 start: int
114 end: int
115
116
117class TokenSpan(NamedTuple):

Callers 2

token_to_charsMethod · 0.85
word_to_charsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected