claf.data.dataset package¶
Submodules¶
-
class
claf.data.dataset.base.
DatasetBase
[source]¶ Bases:
torch.utils.data.dataset.Dataset
Dataset Base Model An abstract class representing a Dataset.
-
class
claf.data.dataset.seq_cls.
SeqClsDataset
(batch, vocab, helper=None)[source]¶ Bases:
claf.data.dataset.base.DatasetBase
Dataset for Sequence Classification
- Args:
batch: Batch DTO (claf.data.batch)
- Kwargs:
helper: helper from data_reader
-
property
num_classes
¶
-
property
sequence_maxlen
¶
-
class
claf.data.dataset.squad.
SQuADDataset
(batch, vocab, helper=None)[source]¶ Bases:
claf.data.dataset.base.DatasetBase
- SQuAD Dataset
compatible with v1.1 and v2.0
- Args:
batch: Batch DTO (claf.data.batch)
- Kwargs:
helper: helper from data_reader
-
property
context_maxlen
¶
-
property
question_maxlen
¶
-
class
claf.data.dataset.wikisql.
WikiSQLDataset
(batch, vocab, helper=None)[source]¶ Bases:
claf.data.dataset.base.DatasetBase
WikiSQL Dataset
- Args:
batch: Batch DTO (claf.data.batch)
- Kwargs:
helper: helper from data_reader
-
property
question_maxlen
¶
Module contents¶
-
class
claf.data.dataset.
MultiTaskBertDataset
(batches, vocab, helper=None)[source]¶ Bases:
claf.data.dataset.base.DatasetBase
Dataset for Multi-Task GLUE using BERT
- Args:
batch: Batch DTO (claf.data.batch)
- Kwargs:
helper: helper from data_reader
-
class
claf.data.dataset.
RegressionBertDataset
(batch, vocab, helper=None)[source]¶ Bases:
claf.data.dataset.base.DatasetBase
Dataset for Regression using BERT
- Args:
batch: Batch DTO (claf.data.batch)
- Kwargs:
helper: helper from data_reader
-
property
sequence_maxlen
¶
-
class
claf.data.dataset.
SeqClsDataset
(batch, vocab, helper=None)[source]¶ Bases:
claf.data.dataset.base.DatasetBase
Dataset for Sequence Classification
- Args:
batch: Batch DTO (claf.data.batch)
- Kwargs:
helper: helper from data_reader
-
property
num_classes
¶
-
property
sequence_maxlen
¶
-
class
claf.data.dataset.
SeqClsBertDataset
(batch, vocab, helper=None)[source]¶ Bases:
claf.data.dataset.base.DatasetBase
Dataset for Sequence Classification using BERT
- Args:
batch: Batch DTO (claf.data.batch)
- Kwargs:
helper: helper from data_reader
-
property
num_classes
¶
-
property
sequence_maxlen
¶
-
class
claf.data.dataset.
SQuADDataset
(batch, vocab, helper=None)[source]¶ Bases:
claf.data.dataset.base.DatasetBase
- SQuAD Dataset
compatible with v1.1 and v2.0
- Args:
batch: Batch DTO (claf.data.batch)
- Kwargs:
helper: helper from data_reader
-
property
context_maxlen
¶
-
property
question_maxlen
¶
-
class
claf.data.dataset.
SQuADBertDataset
(batch, vocab, helper=None)[source]¶ Bases:
claf.data.dataset.base.DatasetBase
- SQuAD Dataset for BERT
compatible with v1.1 and v2.0
- Args:
batch: Batch DTO (claf.data.batch)
- Kwargs:
helper: helper from data_reader
-
property
bert_input_maxlen
¶
-
class
claf.data.dataset.
TokClsBertDataset
(batch, vocab, helper=None)[source]¶ Bases:
claf.data.dataset.base.DatasetBase
Dataset for Token Classification
- Args:
batch: Batch DTO (claf.data.batch)
- Kwargs:
helper: helper from data_reader
-
property
sequence_maxlen
¶
-
class
claf.data.dataset.
WikiSQLDataset
(batch, vocab, helper=None)[source]¶ Bases:
claf.data.dataset.base.DatasetBase
WikiSQL Dataset
- Args:
batch: Batch DTO (claf.data.batch)
- Kwargs:
helper: helper from data_reader
-
property
question_maxlen
¶