class_docstr: Storage Structure of Topic model, including vocabulary and word topic count.
      
docstr: Load the word topic parameters.
          
docstr_tok: ["Load","the","word","topic","parameters","."]
code: def __load_word_dict(self, word_dict_path):
      """Load the word topic parameters."""
      logger.info("Loading word topic.")
      with open(word_dict_path, "r", encoding="utf-8") as f:
          for line in tqdm(f.readlines()):
              fields = line.strip().split(" ")
              assert len(fields) > 0, "Model file format error!"
              term_id = int(fields[0])
              assert (
                  term_id < self.vocab_size()
              ), "Term id out of range!"
              assert term_id >= 0, "Term id out of range!"
              for i in range(1, len(fields)):
                  topic_count = fields[i].split(":")
                  assert (
                      len(topic_count) == 2
                  ), "Topic count format error!"
  
                  topic_id = int(topic_count[0])
                  assert topic_id >= 0, "Topic out of range!"
                  assert (
                      topic_id < self.__num_topics
                  ), "Topic out of range!"
  
                  count = int(topic_count[1])
                  assert count >= 0, "Topic count error!"
  
                  self.__word_topic[term_id][topic_id] = count
                  self.__topic_sum[topic_id] += count
                  self.__topic_words[topic_id].append(
                      WordCount(term_id, count)
                  )
              new_dict = OrderedDict()
              for key in sorted(self.__word_topic[term_id]):
                  new_dict[key] = self.__word_topic[term_id][key]
              self.__word_topic[term_id] = new_dict
  
imports: import os
  from collections import OrderedDict
  import numpy
  from tqdm import tqdm
  from paddlehub.common.logger import logger
  from slda_news.vocab import Vocab, WordCount
label_desc: Use image node_id 15 for calling the TopicModel obj's underlying member method code with example usage: obj.__load_word_dict(word_dict_path) without return types