def preprocess_text(raw_text,nlp):
  """
      Preprocesses the raw metaphor by removing sotp words and lemmatizing the words
      Args:
          raw_text: (string) the original metaphor text to be processed
          nlp: (spacy language object)
  """
  
  tokens=[]
  for token in nlp(raw_text):
    if not token.is_stop:
      tokens.append(token.lemma_)
  return " ".join(tokens)