qit.lmap.array_to_label

qit.lmap.array_to_label(s, symbols)

Utility, converts an integer array to the corresponding label.

Parameters
  • s (Iterable[int]) – numeric array

  • symbols (Sequence[str]) – symbol alphabet for the label

Returns

label, label[k] == symbols[s[k]]

Return type

str