class_docstr: Convert source and target examples to doc level segments.
  
  It concatenates segments with a DefaultTokens.SEP
  until it reaches --doc_length tokens
class_docstr_tok: ["Convert","source","and","target","examples","to","doc","level","segments",".","It","concatenates","segments","with","a","DefaultTokens.SEP","until","it","reaches","--","doc_length","tokens"]
code: def _parse_opts(self):
      if hasattr(self.opts, "num_workers") and hasattr(
          self.opts, "world_size"
      ):
          self.stride = self.opts.num_workers * self.opts.world_size
      else:
          self.stride = 1
      self.doc_length = self.opts.doc_length
      self.max_context = self.opts.max_context
  
file_path: OpenNMT-py/onmt/transforms/docify.py
imports: from onmt.constants import DefaultTokens
  from onmt.transforms import register_transform
  from .transform import Transform
  import copy
label_desc: Use image node_id 3 for calling the DocifyTransform obj's underlying member method code with example usage: obj._parse_opts() without return types