ConstituencyDataset(data: Union[str, List], transform: Union[Callable, List] = None, cache=None, generate_idx=None)¶
Datasetwhich can be applied with a list of transform functions.
data – The local or remote path to a dataset, or a list of samples where each sample is a dict.
transform – Predefined transform(s).
Trueto enable caching, so that transforms won’t be called twice.
generate_idx – Create a
IDXfield for each sample to store its order in dataset. Useful for prediction when samples are re-ordered by a sampler.