def writeUtterTagIntentTxt(utter_txt, tag_txt, intent_txt, target_fname):
    with open(target_fname, 'wb') as f:
        for (utter, tag, intent) in zip(utter_txt, tag_txt, intent_txt):
            tag_new = [token.replace('tag-', '', 1) for token in tag.split()]
            intent_new = [token.replace('intent-', '', 1) for token in intent.split(';')]
            new_line = '{}\t{}\t{}'.format(utter, ' '.join(tag_new), ';'.join(intent_new))
            f.write('{}\n'.format(new_line))
def writeUtterTagIntentTxt(utter_txt, tag_txt, intent_txt, target_fname):
    with open(target_fname, 'wb') as f:
        for (utter, tag, intent) in zip(utter_txt, tag_txt, intent_txt):
            tag_new = [token.replace('tag-', , 1) for token in tag.split()]
            intent_new = [token.replace('intent-', , 1) for token in intent.split(';')]
            new_line = '{}\t{}\t{}'.format(utter, ' '.join(tag_new), ';'.join(intent_new))
            f.write('{}\n'.format(new_line))