WikiText103DataLoader<T>
Models & Types · AiDotNet.Data.Text.Benchmarks
Loads the WikiText-103 language modeling dataset (100M+ tokens from Wikipedia articles).
Inheritance: DataLoaderBase<T> → InputOutputDataLoaderBase<T, Tensor<T>, Tensor<T>> → WikiText103DataLoader<T>
How It Works
WikiText-103 expects:
Features are input token sequences Tensor[N, SequenceLength]. Labels are next-token target sequences Tensor[N, SequenceLength] (shifted by 1).
Constructors
| Constructor | Summary |
|---|---|
WikiText103DataLoader(WikiText103DataLoaderOptions options) |
Creates a new WikiText-103 data loader. |
Properties
| Property | Summary |
|---|---|
int FeatureCount { get; } |
|
int OutputDimension { get; } |
|
int TotalCount { get; } |
|
string Description { get; } |
|
string Name { get; } |
Methods
| Method | Summary |
|---|---|
Task<string> LoadRawTextAsync(DatasetSplit split, CancellationToken cancellationToken) |
Loads the raw, unprocessed text content for the requested split, auto-downloading via AutoDownload if the file is not already cached. |
ValueTuple<IInputOutputDataLoader<T, Tensor<T>, Tensor<T>>, IInputOutputDataLoader<T, Tensor<T>, Tensor<T>>, IInputOutputDataLoader<T, Tensor<T>, Tensor<T>>> Split(double trainRatio, double validationRatio, int? seed) |