code: def get_texts_and_labels(sentence_chunk):
      
      words = sentence_chunk.split('\n')
      texts = []
      labels = []
      for word in words:
          word = word.strip()
          if len(word) > 0:
              toks = word.split('\t')
              texts.append(toks[0].strip())
              labels.append(toks[-1].strip())
      return texts, labels
docs: Given a sentence chunk, extract original texts and labels.