Contents

init(url:)

Creates a loader backed by the JSON or JSONL file at the given URL.

Declaration

init(url: URL)

Discussion

var dataset: JSONLoader<ModelSample<String>> {
    let url = Bundle.main.url(forResource: "samples", withExtension: "jsonl")!
    return JSONLoader(url: url)
}