def extract(self, token: str, current_idx: int, relative_idx: int, tokens: Sequence[str], features: Dict[(str, float)]) -> None:
    if (str.istitle(token) and ((current_idx + relative_idx) == 0)):
        features[('initialtitlecase[%d]' % relative_idx)] = 1.0
def extract(self, token: str, current_idx: int, relative_idx: int, tokens: Sequence[str], features: Dict[(str, float)]) -> None:
    if (str.istitle(token) and ((current_idx + relative_idx) == 0)):
        features[('initialtitlecase[%d]' % relative_idx)] = 1.0