code: def _extract_sentence(self, sentence):
      sentence_id, text, labels = sentence.split("\n")
      labels = re.findall(
          "\{(?P<aspect>.*?), (?P<polarity>.*?)\}", labels
      )
      aspect_labels = [label[0] for label in labels]
      polarity_labels = [
          label[1] for label in labels
      ]  # some odd polarity labels outside of pos, neg, neutral
  
      if self.training == "aspect":
          label_ids = self.label_encoder.encode(aspect_labels)
      else:
          label_ids = self.label_encoder.encode(polarity_labels)
  
      return {
          "sentence_id": sentence_id,
          "text": text,
          "labels": labels,
          "aspect_labels": aspect_labels,
          "polarity_labels": polarity_labels,
          "label_ids": label_ids,
      }
  
file_path: underthesea/underthesea/datasets/uit_absa_restaurant/uit_absa_restaurant.py
imports: from os.path import join
  import re
  from underthesea.data_fetcher import DataFetcher
  from underthesea.file_utils import DATASETS_FOLDER
label_desc: Use image node_id 3 for calling the UITABSARestaurant obj's underlying member method code with example usage: obj._extract_sentence(sentence) and returns: dict