def extract(self, token: str, current_idx: int, relative_idx: int, tokens: Sequence[str], features: Dict[(str, float)]) -> None:
    if str.isupper(token):
        features[('uppercase[%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.isupper(token):
        features[('uppercase[%d]' % relative_idx)] = 1.0