class_docstr: Text classification service
class_docstr_tok: ["Text","classification","service"]
docstr: Scan a dataset records
  
  Parameters
  ----------
  dataset:
      The dataset name
  query:
      If provided, scan will retrieve only records matching
      the provided query filters. Optional
  id_from:
      If provided, read the samples after this record ID
  limit:
      Batch size to scan, only used if `id_from` is specified
docstr_tok: ["Scan","a","dataset","records","Parameters","--","--","--","--","--","dataset",":","The","dataset","name","query",":","If","provided",",","scan","will","retrieve","only","records","matching","the","provided","query","filters",".","Optional","id_from",":","If","provided",",","read","the","samples","after","this","record","ID","limit",":","Batch","size","to","scan",",","only","used","if","`","id_from","`","is","specified"]
code: def read_dataset(
      self,
      dataset: ServiceTextClassificationDataset,
      query: Optional[ServiceTextClassificationQuery] = None,
      id_from: Optional[str] = None,
      limit: int = 1000,
  ) -> Iterable[ServiceTextClassificationRecord]:
      """
      Scan a dataset records
  
      Parameters
      ----------
      dataset:
          The dataset name
      query:
          If provided, scan will retrieve only records matching
          the provided query filters. Optional
      id_from:
          If provided, read the samples after this record ID
      limit:
          Batch size to scan, only used if `id_from` is specified
  
      """
      yield from self.__search__.scan_records(
          dataset,
          query=query,
          record_type=ServiceTextClassificationRecord,
          id_from=id_from,
          limit=limit,
      )
  
imports: from typing import Iterable, List, Optional, Tuple
  from fastapi import Depends
  from argilla.server.errors.base_errors import EntityAlreadyExistsError, EntityNotFoundError, MissingDatasetRecordsError
  from argilla.server.services.datasets import DatasetsService
  from argilla.server.services.metrics import MetricsService
  from argilla.server.services.search.model import ServiceSearchResults, ServiceSortableField, ServiceSortConfig
  from argilla.server.services.search.service import SearchRecordsService
  from argilla.server.services.storage.service import RecordsStorageService
  from argilla.server.services.tasks.commons import BulkResponse
  from argilla.server.services.tasks.text_classification.metrics import TextClassificationMetrics
  from argilla.server.services.tasks.text_classification.model import DatasetLabelingRulesMetricsSummary, DatasetLabelingRulesSummary, LabelingRuleMetricsSummary, LabelingRuleSummary, ServiceLabelingRule, ServiceTextClassificationDataset, ServiceTextClassificationQuery, ServiceTextClassificationRecord
label_desc: Use image node_id 4 for calling the TextClassificationService obj's underlying member method code with example usage: obj.read_dataset(dataset, query, id_from, limit) without return types