docstr: Add terms to source examples.
docstr_tok: ["Add","terms","to","source","examples","."]
code: def apply(
      self, example, is_train=False, stats=None, **kwargs
  ) -> tuple:
      """Add terms to source examples."""
  
      (
          example["src"],
          is_match,
      ) = self.termmatcher._src_sentence_with_terms(
          " ".join(example["src"]), " ".join(example["tgt"])
      )
      return example, is_match
  
imports: from onmt.utils.logging import logger
  from onmt.transforms import register_transform
  from .transform import Transform
  import spacy
  import ahocorasick
  import re
label_desc: Use image node_id 7 for calling the TerminologyTransform obj's underlying member method code with example usage: obj.apply(example, is_train, stats) and returns: example,  is_match