slot_filling#

(s3prl.metric.slot_filling)

Metrics for the slot filling SLU task

Authors:
  • Yung-Sung Chuang 2021

  • Heng-Jui Chang 2022

slot_type_f1#

s3prl.metric.slot_filling.slot_type_f1(hypothesis: List[str], groundtruth: List[str], **kwargs) float[source][source]#

slot_value_cer#

s3prl.metric.slot_filling.slot_value_cer(hypothesis: List[str], groundtruth: List[str], **kwargs) float[source][source]#

slot_value_wer#

s3prl.metric.slot_filling.slot_value_wer(hypothesis: List[str], groundtruth: List[str], **kwargs) float[source][source]#

slot_edit_f1#

s3prl.metric.slot_filling.slot_edit_f1(hypothesis: List[str], groundtruth: List[str], loop_over_all_slot: bool, **kwargs) float[source][source]#