def extract(self, token: str, current_idx: int, relative_idx: int, tokens: Sequence[str], features: Dict[(str, float)]) -> None:
    if (relative_idx != 0):
        return
    if (self.use_full_paths and (token in self.full_path_dict)):
        features[f'cpath={self.full_path_dict[token]}'] = 1.0
    elif (token in self.prefix_dict):
        for prefix in self.prefix_dict[token]:
            features[f'cprefix{len(prefix)}={prefix}'] = 1.0
def extract(self, token: str, current_idx: int, relative_idx: int, tokens: Sequence[str], features: Dict[(str, float)]) -> None:
    if (relative_idx != 0):
        return
    if (self.use_full_paths and (token in self.full_path_dict)):
        features[f'cpath={self.full_path_dict[token]}'] = 1.0
    elif (token in self.prefix_dict):
        for prefix in self.prefix_dict[token]:
            features[f'cprefix{len(prefix)}={prefix}'] = 1.0