code: def _add_to_x_factory(self, row):
      parsed_text = row[self._parsed_col]
      for term, (
          count,
          offsets,
      ) in self._feat_and_offset_getter.get_term_offsets(parsed_text):
          term_idx = self._term_idx_store.getidx(term)
          self._X_factory[row.name, term_idx] = count
          if offsets is not None:
              self._term_offsets.setdefault(term, {}).setdefault(
                  row.name, []
              ).extend(offsets)
  
      for meta, (
          val,
          offsets,
      ) in self._feat_and_offset_getter.get_metadata_offsets(
          parsed_text
      ):
          self.__get_metadata_offsets(meta, offsets, row, val)
  
      for meta, (
          val,
          offsets,
      ) in self._feat_and_offset_getter.get_metadata_row_offsets(
          parsed_text, row
      ):
          self.__get_metadata_offsets(meta, offsets, row, val)
  
file_path: scattertext/scattertext/OffsetCorpusFactory.py
imports: import string
  import numpy
  from scattertext.OffsetCorpus import OffsetCorpus
  from scattertext.CSRMatrixTools import CSRMatrixFactory
  from scattertext.indexstore.IndexStore import IndexStore
label_desc: Use image node_id 5 for calling the OffsetCorpusFactory obj's underlying member method code with example usage: obj._add_to_x_factory(row) without return types