✍🏼 Generators#
- class text_machina.src.generators.base.DatasetGenerator(config)[source]#
Bases:
ABCBase class for dataset generators.
- class text_machina.src.generators.detection.DetectionDatasetGenerator(config)[source]#
Bases:
DatasetGeneratorDataset generator for the detection task type.
- class text_machina.src.generators.attribution.AttributionDatasetGenerator(config)[source]#
Bases:
DatasetGeneratorDataset generator for the attribution task type.
- class text_machina.src.generators.boundary.BoundaryDatasetGenerator(config)[source]#
Bases:
DatasetGeneratorDataset generator for the boundary task type.
- class text_machina.src.generators.mixcase.MixCaseDatasetGenerator(config)[source]#
Bases:
DatasetGeneratorDataset generator for the mixcase task type.
- class text_machina.src.generators.mixcase.MixCaseGapPacker(config, extractor)[source]#
Bases:
MixCasePackerPacker for mixcase task type when using gap-based extractors.
- class text_machina.src.generators.mixcase.MixCaseMaskPacker(config, extractor)[source]#
Bases:
MixCasePackerPacker for mixcase task type when using mask-based extractors.
- class text_machina.src.generators.mixcase.MixCasePacker(config, extractor)[source]#
Bases:
ABCBase class for mixcase packers.
- class text_machina.src.generators.mixcase.MixCaseRewritingPacker(config, extractor)[source]#
Bases:
MixCasePackerPacker for mixcase task type when using rewriting-based extractors.