class_docstr: Metric to keep track of slot F1.
  
  Keeps track of slot precision and slot recall as running metrics.
class_docstr_tok: ["Metric","to","keep","track","of","slot","F1",".","Keeps","track","of","slot","precision","and","slot","recall","as","running","metrics","."]
code: def __add__(self, other: Optional["SlotF1Metric"]) -> "SlotF1Metric":
      # NOTE: hinting can be cleaned up with "from __future__ import annotations" when
      # we drop Python 3.6
      if other is None:
          return self
      slot_p = _average_type_sum_helper(self._slot_p, other._slot_p)
      slot_r = _average_type_sum_helper(self._slot_r, other._slot_r)
      return type(self)(slot_p=slot_p, slot_r=slot_r)
  
file_path: ParlAI/parlai/core/tod/teacher_metrics.py
imports: from typing import Optional, List, Dict, Any
  from parlai.core.metrics import AverageMetric, BleuMetric, F1Metric, Metric, Metrics
label_desc: Use image node_id 3 for calling the SlotF1Metric obj's underlying member method code with example usage: obj.__add__(other) and returns: type, self