def get_token_by_idx(self, idx, doc):
    for token in doc:
        if (token.idx == idx):
            return token
def get_token_by_idx(self, idx, doc):
    for token in doc:
        if (token.idx == idx):
            return token