docstr: Only one feature file is needed:  `news_feature_file`.
  This function loads the news article's features into two dictionaries: `self.news_word_index` and `self.news_entity_index`.
docstr_tok: ["Only","one","feature","file","is","needed",":","`","news_feature_file","`",".","This","function","loads","the","news","article","'s","features","into","two","dictionaries",":","`","self.news_word_index","`","and","`","self.news_entity_index","`","."]
code: def _loading_nessary_files(self):
      """Only one feature file is needed:  `news_feature_file`.
      This function loads the news article's features into two dictionaries: `self.news_word_index` and `self.news_entity_index`.
      """
      hparams = self.hparams
      self.news_word_index = {}
      self.news_entity_index = {}
      with open(hparams.news_feature_file, "r") as rd:
          while True:
              line = rd.readline()
              if not line:
                  break
              newsid, word_index, entity_index = line.strip().split(" ")
              self.news_word_index[newsid] = [
                  int(item) for item in word_index.split(",")
              ]
              self.news_entity_index[newsid] = [
                  int(item) for item in entity_index.split(",")
              ]
  
imports: import tensorflow
  from recommenders.models.deeprec.io.dkn_iterator import DKNTextIterator
label_desc: Use image node_id 2 for calling the DKNItem2itemTextIterator obj's underlying member method code with example usage: obj._loading_nessary_files() without return types