docstr: self.lac_query_list = ["我/r", "和/c", "妈妈/n", "经常/d", "过去/v", "那儿/r", "散步/v"]
  self.seg_query_list = ["我", "和", "妈妈", "经常", "过去", "那儿", "散步"]
  self.seg_query_str = "我 和 妈妈 经常 过去 那儿 散步"
  self.ori_query_str = "我和妈妈经常过去那儿散步"
docstr_tok: ["self.lac_query_list","=","[","``","\u6211\/r","''",",","``","\u548c\/c","''",",","``","\u5988\u5988\/n","''",",","``","\u7ecf\u5e38\/d","''",",","``","\u8fc7\u53bb\/v","''",",","``","\u90a3\u513f\/r","''",",","``","\u6563\u6b65\/v","''","]","self.seg_query_list","=","[","``","\u6211","''",",","``","\u548c","''",",","``","\u5988\u5988","''",",","``","\u7ecf\u5e38","''",",","``","\u8fc7\u53bb","''",",","``","\u90a3\u513f","''",",","``","\u6563\u6b65","''","]","self.seg_query_str","=","``","\u6211","\u548c","\u5988\u5988","\u7ecf\u5e38","\u8fc7\u53bb","\u90a3\u513f","\u6563\u6b65","''","self.ori_query_str","=","``","\u6211\u548c\u5988\u5988\u7ecf\u5e38\u8fc7\u53bb\u90a3\u513f\u6563\u6b65","''"]
code: def set_query(self, lac_query):
      """
      self.lac_query_list = ["我/r", "和/c", "妈妈/n", "经常/d", "过去/v", "那儿/r", "散步/v"]
      self.seg_query_list = ["我", "和", "妈妈", "经常", "过去", "那儿", "散步"]
      self.seg_query_str = "我 和 妈妈 经常 过去 那儿 散步"
      self.ori_query_str = "我和妈妈经常过去那儿散步"
      """
      length = len(lac_query["word"])
      if six.PY2:
          self.lac_query_list = [
              lac_query["word"][index].encode("utf8")
              + "/"
              + lac_query["tag"][index].encode("utf8")
              for index in range(length)
          ]
      else:
          self.lac_query_list = [
              lac_query["word"][index] + "/" + lac_query["tag"][index]
              for index in range(length)
          ]
  
      self.seg_query_list = []
      for phrase in self.lac_query_list:
          index = phrase.rfind("/")
          word = phrase[0:index]
          self.seg_query_list.append(word)
      self.seg_query_str = " ".join(self.seg_query_list)
      self.ori_query_str = "".join(self.seg_query_list)
  
imports: import io
  import numpy
  import six
label_desc: Use image node_id 2 for calling the Query obj's underlying member method code with example usage: obj.set_query(lac_query) without return types