class_docstr: The F1 metric based on entity-level.
  
  We follow the convention of `CoNLL 2003 <https://aclanthology.org/W03-0419/>`_, where:
  `"precision is the percentage of named entities found by the learning system that are correct.
  Recall is the percentage of named entities present in the corpus that are found by the system.
  A named entity is correct only if it is an exact match (...).”`
class_docstr_tok: ["The","F1","metric","based","on","entity-level",".","We","follow","the","convention","of","`","CoNLL","2003","<","https",":","\/\/aclanthology.org\/W03-0419\/",">","`","_",",","where",":","`","``","precision","is","the","percentage","of","named","entities","found","by","the","learning","system","that","are","correct",".","Recall","is","the","percentage","of","named","entities","present","in","the","corpus","that","are","found","by","the","system",".","A","named","entity","is","correct","only","if","it","is","an","exact","match","(","...",")",".","\u201d","`"]
docstr: Helper function for the apply method.
docstr_tok: ["Helper","function","for","the","apply","method","."]
code: def _safe_divide(numerator, denominator):
      """Helper function for the apply method."""
      try:
          return numerator / denominator
      except ZeroDivisionError:
          return 0
  
imports: from typing import Any, ClassVar, Dict, Iterable, List, Optional, Set, Tuple
  from argilla.server.pydantic_v1 import BaseModel, Field
  from argilla.server.services.metrics import ServiceBaseMetric, ServicePythonMetric
  from argilla.server.services.metrics.models import CommonTasksMetrics
  from argilla.server.services.search.model import ServiceRecordsQuery
  from argilla.server.services.tasks.token_classification.model import EntitySpan, ServiceTokenClassificationAnnotation, ServiceTokenClassificationRecord
  from argilla.utils import SpanUtils
label_desc: Use image node_id 3 for calling the F1Metric obj's underlying member method code with example usage: obj._safe_divide(numerator, denominator) and returns: unknown, int