class_docstr: Dummy-valued seq2seq salience, for testing.
class_docstr_tok: ["Dummy-valued","seq2seq","salience",",","for","testing","."]
code: def _run_single(
      self, ex: JsonDict, mo: JsonDict, field_map: dict[str, str]
  ) -> dict[str, dtypes.SequenceSalienceMap]:
      result = {}  # dict[target_field name -> interpretations]
      for target_field, source_fields in field_map.items():
          source_tokens = []
          for sf in source_fields:
              source_tokens.extend(ex.get(sf, "").split())
  
          target = mo[target_field]
          if isinstance(target, list):
              target = target[0][0]  # text for first candidate
          target_tokens = target.split()
  
          salience = self._dummy_sequence_salience(
              source_tokens, target_tokens
          )
          result[target_field] = dtypes.SequenceSalienceMap(
              source_tokens, target_tokens, salience
          )
      return result
  
file_path: lit/lit_nlp/components/sequence_salience.py
imports: from typing import Optional
  import Levenshtein
  from lit_nlp.api import components
  from lit_nlp.api import dataset
  from lit_nlp.api import dtypes
  from lit_nlp.api import model
  from lit_nlp.api import types
  from lit_nlp.lib import utils
  import numpy
label_desc: Use image node_id 3 for calling the DummySequenceSalience obj's underlying member method code with example usage: obj._run_single(ex, mo, field_map) and returns: result