code: def _add_to_x_factory(self, row):
      for feat, count in row[self._feature_col].items():
          feat_idx = self._term_idx_store.getidx(feat)
          self._X_factory[row.name, feat_idx] = count
      if self._metadata_col in self._df:
          for meta, count in row[self._metadata_col].items():
              meta_idx = self._metadata_idx_store.getidx(meta)
              self._mX_factory[row.name, meta_idx] = count
  
file_path: scattertext/scattertext/CorpusFromFeatureDict.py
imports: import numpy
  from scattertext.CorpusDF import CorpusDF
  from scattertext.CSRMatrixTools import CSRMatrixFactory
  from scattertext.ParsedCorpus import ParsedCorpus
  from scattertext.indexstore.IndexStore import IndexStore
label_desc: Use image node_id 4 for calling the CorpusFromFeatureDict obj's underlying member method code with example usage: obj._add_to_x_factory(row) without return types