class_docstr: An class that supply methods for ABSA task data transformation.
docstr: Get the postag.
  
  :param list|str sentence: sentence
  :param int start: start index
  :param int end: end index
  :return list: postag
docstr_tok: ["Get","the","postag",".",":","param","list|str","sentence",":","sentence",":","param","int","start",":","start","index",":","param","int","end",":","end","index",":","return","list",":","postag"]
code: def get_postag(self, sentence, start, end):
      r"""
      Get the postag.
  
      :param list|str sentence: sentence
      :param int start: start index
      :param int end: end index
      :return list: postag
      """
  
      tags = self.processor.get_pos(sentence)
      if end != -1:
          return tags[start:end]
      else:
          return tags[start:]
  
imports: import random
  from abc import ABC
  from copy import deepcopy
  from ..transformation import Transformation
  from ....common.settings import NEGATIVE_WORDS_LIST, DEGREE_WORD_LIST
label_desc: Use image node_id 4 for calling the ABSATransformation obj's underlying member method code with example usage: obj.get_postag(sentence, start, end) and returns: tags, tags