parameters: (dict_path)
return_statement: return result_dict
docstring: Load a dict. The first column is the key and the second column is the value.
docstring_summary: Load a dict. The first column is the key and the second column is the value.
docstring_tokens: Load a dict . The first column is the key and the second column is the value .
function: def load_dict(dict_path):
      """
      Load a dict. The first column is the key and the second column is the value.
      """
      result_dict = {}
      for line in io.open(dict_path, "r", encoding='utf8'):
          terms = line.strip("\n").split("\t")
          if len(terms) != 2:
              continue
          result_dict[terms[0]] = terms[1]
      return result_dict
function_tokens: def load_dict ( dict_path ) : result_dict = { } for line in io . open ( dict_path , "r" , encoding = 'utf8' ) : terms = line . strip ( "\n" ) . split ( "\t" ) if len ( terms ) != 2 : continue result_dict [ terms [ 0 ] ] = terms [ 1 ] return result_dict