def METHOD_NAME(self, words, idx):
    """
    Get the context word list of target word.
    words: the words of the current line
    idx: input word index
    window_size: window size
    """
    target_window = self.random_generator
    # if (idx - target_window) > 0 else 0
    start_point = idx - target_window
    if start_point < 0:
        start_point = 0
    end_point = idx + target_window
    targets = words[start_point:idx] + words[idx + 1:end_point + 1]
    return targets