class_docstr: A parallel corpus file pair that can be loaded to iterate.
class_docstr_tok: ["A","parallel","corpus","file","pair","that","can","be","loaded","to","iterate","."]
docstr: Initialize src & tgt side file path.
docstr_tok: ["Initialize","src","&","tgt","side","file","path","."]
code: def __init__(
      self,
      name,
      src,
      tgt,
      align=None,
      n_src_feats=0,
      src_feats_defaults=None,
  ):
      """Initialize src & tgt side file path."""
      self.id = name
      self.src = src
      self.tgt = tgt
      self.align = align
      self.n_src_feats = n_src_feats
      self.src_feats_defaults = src_feats_defaults
  
imports: import os
  from onmt.utils.logging import logger
  from onmt.constants import CorpusName, CorpusTask
  from onmt.transforms import TransformPipe
  from onmt.inputters.text_utils import process, parse_features, append_features_to_text
  from contextlib import contextmanager
  import itertools
label_desc: Use image node_id 1 to create a new ParallelCorpus object from inherited base classes: object with example: obj = ParallelCorpus(name, src, tgt, align, n_src_feats, src_feats_defaults)