code: def expand_aspect(in_aspect_token, relation_list):
      """Expand aspect by Looking for a noun word that its gov is the aspect. if it has (noun)
      compound relation add it to aspect."""
      aspect = DepRelationTerm(
          text=in_aspect_token.text,
          lemma=in_aspect_token.lemma,
          pos=in_aspect_token.pos,
          ner=in_aspect_token.ner,
          idx=in_aspect_token.idx,
      )
      for rel in relation_list:
          if (rel.rel == "compound") and (rel.gov.idx == aspect.idx):
              diff_positive = (
                  aspect.idx - len(rel.dep.text) - 1 - rel.dep.idx
              )
              diff_negative = (
                  rel.dep.idx - len(aspect.text) - 1 - aspect.idx
              )
              if diff_positive == 0:
                  aspect.text = rel.dep.text + " " + aspect.text
                  aspect.lemma = rel.dep.text + " " + aspect.lemma
                  aspect.idx = rel.dep.idx
              if diff_negative == 0:
                  aspect.text = aspect.text + " " + rel.dep.text
                  aspect.lemma = aspect.lemma + " " + rel.dep.lemma
  
      aspect.text = aspect.text.lower()
      aspect.lemma = aspect.lemma.lower()
  
      return aspect
  
file_path: nlp-architect/nlp_architect/models/absa/train/rules.py
imports: from nlp_architect.models.absa.inference.data_types import Polarity
  from nlp_architect.models.absa.train.data_types import CandidateTerm, RelCategory, DepRelationTerm, POS
label_desc: Use image node_id 8 for calling a global function with example usage: expand_aspect(in_aspect_token, relation_list) and returns: aspect