Documentation Index
Fetch the complete documentation index at: https://wb-21fd5541-john-wbdocs-2044-rename-serverless-products.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
weave / 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;
// データセットを保存する
const ref = await dataset.save()
型パラメーター
コンストラクター
• new Dataset<R>(parameters): Dataset<R>
| 名 | タイプ |
|---|
parameters | DatasetParameters<R> |
Dataset<R>
WeaveObject.constructor
dataset.ts:51
プロパティ
• 任意 __savedRef: ObjectRef | Promise<ObjectRef>
WeaveObject.__savedRef
weaveObject.ts:73
• rows: Table<R>
dataset.ts:49
アクセサ
• get description(): undefined | string
undefined | string
WeaveObject.description
weaveObject.ts:100
• get length(): number
number
dataset.ts:64
• get name(): string
string
WeaveObject.name
weaveObject.ts:96
Methods
▸ [asyncIterator](): AsyncIterator<any, any, undefined>
AsyncIterator<any, any, undefined>
dataset.ts:68
▸ getRow(index): R
R
dataset.ts:74
▸ save(): Promise<ObjectRef>
Promise<ObjectRef>
dataset.ts:60
▸ saveAttrs(): Object
Object
WeaveObject.saveAttrs
weaveObject.ts:77