code: def rebuild_row(lst, is_collocation):
      """
      Re-construct csv row as expected by data.py `read_csv_file_data` method
  
      Args:
          lst (list(str)): list with a string containing '\t'
          is_collocation (bool): if collocation True, else False
  
      Returns:
          list(str): list of string where the first entry is the noun phrase and the second is 0\1
      """
      split_list = lst[0].split("\t")
      if is_collocation:
          return [split_list[0] + " " + split_list[1], "1"]
      return [split_list[0] + " " + split_list[1], "0"]
  
file_path: nlp-architect/examples/np_semantic_segmentation/preprocess_tratz2011.py
imports: from __future__ import unicode_literals, print_function, division, absolute_import
  import argparse
  import csv
  import os
  from .data import absolute_path
  from nlp_architect.utils.io import validate_existing_directory
label_desc: Use image node_id 1 for calling a global function with example usage: rebuild_row(lst, is_collocation) and returns: list, list