code: def clean_word(word):
      # novel_00078.txt
      if word == "<NEพี่มน</NE>":
          return "พี่มน"
      if word.startswith("<NE>") and word.endswith("</NE>"):
          return word[4:-5]
      if word.startswith("<AB>") and word.endswith("</AB>"):
          return word[4:-5]
      if word.startswith("<POEM>") and word.endswith("</POEM>"):
          return word[6:-7]
      """
      if word.startswith("<EM>"):
          return word[4:]
      if word.endswith("</EM>"):
          return word[:-5]
      """
      if word.startswith("<NE>"):
          return word[4:]
      if word.endswith("</NE>"):
          return word[:-5]
      if word.startswith("<POEM>"):
          return word[6:]
      if word.endswith("</POEM>"):
          return word[:-7]
      if word == "<":
          return word
      return word
  
file_path: stanza/stanza/utils/datasets/tokenization/convert_th_best.py
imports: import glob
  import os
  import random
  import re
  import sys
  from stanza.utils.datasets.tokenization.process_thai_tokenization import reprocess_lines, write_dataset, convert_processed_lines, write_dataset_best, write_dataset
label_desc: Use image node_id 2 for calling a global function with example usage: clean_word(word) and returns: word, str, word, word, word, word, word, word, word, word