aito.schema.AitoAnalyzerSchema.infer_from_samples

classmethod AitoAnalyzerSchema.infer_from_samples(samples: Iterable[str], max_sample_size: int = 10000)

Infer an analyzer from the given samples

Parameters
  • samples (Iterable) – iterable of sample

  • max_sample_size (int) – at most first max_sample_size will be used for inference, defaults to 10000

Returns

inferred Analyzer or None if no analyzer is applicable

Return type

Optional[AitoAnalyzerSchema]