class_docstr: Configured metrics for token classification
class_docstr_tok: ["Configured","metrics","for","token","classification"]
docstr: Compute the string density over a sentence
docstr_tok: ["Compute","the","string","density","over","a","sentence"]
code: def density(value: int, sentence_length: int) -> float:
      """Compute the string density over a sentence"""
      return value / sentence_length
  
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 1 for calling the TokenClassificationMetrics obj's underlying member method code with example usage: obj.density(value, sentence_length) and returns: unknown