Documentation Index
Fetch the complete documentation index at: https://wb-21fd5541-weave-caching.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
weave / Dataset
簡単な保存機能と自動的な バージョン管理 機能を備えた Dataset オブジェクト。
使用例
// Dataset を作成する
const dataset = new Dataset({
id: 'grammar-dataset',
rows: [
{ id: '0', sentence: "He no likes ice cream.", correction: "He doesn't like ice cream." },
{ id: '1', sentence: "She goed to the store.", correction: "She went to the store." },
{ id: '2', sentence: "They plays video games all day.", correction: "They play video games all day." }
]
})
// 特定の例にアクセスする
const exampleLabel = dataset.getRow(2).sentence;
// Dataset を保存する
const ref = await dataset.save()
型パラメータ
階層構造
コンストラクタ
プロパティ
アクセッサ
メソッド
コンストラクタ
constructor
• new Dataset<R>(parameters): Dataset<R>
型パラメータ
パラメータ
| 名前 | 型 |
|---|
parameters | DatasetParameters<R> |
返り値
Dataset<R>
オーバーライド
WeaveObject.constructor
定義箇所
dataset.ts:51
プロパティ
__savedRef
• Optional __savedRef: ObjectRef | Promise<ObjectRef>
継承元
WeaveObject.__savedRef
定義箇所
weaveObject.ts:73
rows
• rows: Table<R>
定義箇所
dataset.ts:49
アクセッサ
description
• get description(): undefined | string
返り値
undefined | string
継承元
WeaveObject.description
定義箇所
weaveObject.ts:100
length
• get length(): number
返り値
number
定義箇所
dataset.ts:64
name
• get name(): string
返り値
string
継承元
WeaveObject.name
定義箇所
weaveObject.ts:96
メソッド
[asyncIterator]
▸ [asyncIterator](): AsyncIterator<any, any, undefined>
返り値
AsyncIterator<any, any, undefined>
定義箇所
dataset.ts:68
getRow
▸ getRow(index): R
パラメータ
返り値
R
定義箇所
dataset.ts:74
save
▸ save(): Promise<ObjectRef>
返り値
Promise<ObjectRef>
定義箇所
dataset.ts:60
saveAttrs
▸ saveAttrs(): Object
返り値
Object
継承元
WeaveObject.saveAttrs
定義箇所
weaveObject.ts:77