From 3823cda79550142919c56b9f33e74119be584b8c Mon Sep 17 00:00:00 2001 From: sergiopaniego Date: Wed, 28 Aug 2024 09:50:28 +0200 Subject: [PATCH] Updated dataset features ClassLabel output --- chapters/de/chapter3/2.mdx | 2 +- chapters/en/chapter3/2.mdx | 2 +- chapters/es/chapter3/2.mdx | 2 +- chapters/fa/chapter3/2.mdx | 2 +- chapters/fr/chapter3/2.mdx | 2 +- chapters/hi/chapter3/2.mdx | 2 +- chapters/it/chapter3/2.mdx | 2 +- chapters/ru/chapter3/2.mdx | 2 +- chapters/th/chapter3/2.mdx | 2 +- chapters/vi/chapter3/2.mdx | 2 +- chapters/zh-CN/chapter3/2.mdx | 2 +- chapters/zh-TW/chapter3/2.mdx | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/chapters/de/chapter3/2.mdx b/chapters/de/chapter3/2.mdx index ddfcb101d..3990ee0e4 100644 --- a/chapters/de/chapter3/2.mdx +++ b/chapters/de/chapter3/2.mdx @@ -142,7 +142,7 @@ raw_train_dataset.features ```python out {'sentence1': Value(dtype='string', id=None), 'sentence2': Value(dtype='string', id=None), - 'label': ClassLabel(num_classes=2, names=['not_equivalent', 'equivalent'], names_file=None, id=None), + 'label': ClassLabel(names=['not_equivalent', 'equivalent'], id=None), 'idx': Value(dtype='int32', id=None)} ``` diff --git a/chapters/en/chapter3/2.mdx b/chapters/en/chapter3/2.mdx index 5ac395c8e..a96a5be9a 100644 --- a/chapters/en/chapter3/2.mdx +++ b/chapters/en/chapter3/2.mdx @@ -143,7 +143,7 @@ raw_train_dataset.features ```python out {'sentence1': Value(dtype='string', id=None), 'sentence2': Value(dtype='string', id=None), - 'label': ClassLabel(num_classes=2, names=['not_equivalent', 'equivalent'], names_file=None, id=None), + 'label': ClassLabel(names=['not_equivalent', 'equivalent'], id=None), 'idx': Value(dtype='int32', id=None)} ``` diff --git a/chapters/es/chapter3/2.mdx b/chapters/es/chapter3/2.mdx index 088bbfe03..05e3c097f 100644 --- a/chapters/es/chapter3/2.mdx +++ b/chapters/es/chapter3/2.mdx @@ -146,7 +146,7 @@ raw_train_dataset.features ```python out {'sentence1': Value(dtype='string', id=None), 'sentence2': Value(dtype='string', id=None), - 'label': ClassLabel(num_classes=2, names=['not_equivalent', 'equivalent'], names_file=None, id=None), + 'label': ClassLabel(names=['not_equivalent', 'equivalent'], id=None), 'idx': Value(dtype='int32', id=None)} ``` diff --git a/chapters/fa/chapter3/2.mdx b/chapters/fa/chapter3/2.mdx index 9b50e29e3..1fb018916 100644 --- a/chapters/fa/chapter3/2.mdx +++ b/chapters/fa/chapter3/2.mdx @@ -179,7 +179,7 @@ raw_train_dataset.features ```python out {'sentence1': Value(dtype='string', id=None), 'sentence2': Value(dtype='string', id=None), - 'label': ClassLabel(num_classes=2, names=['not_equivalent', 'equivalent'], names_file=None, id=None), + 'label': ClassLabel(names=['not_equivalent', 'equivalent'], id=None), 'idx': Value(dtype='int32', id=None)} ``` diff --git a/chapters/fr/chapter3/2.mdx b/chapters/fr/chapter3/2.mdx index f0f74bd1c..ee77f8083 100644 --- a/chapters/fr/chapter3/2.mdx +++ b/chapters/fr/chapter3/2.mdx @@ -153,7 +153,7 @@ raw_train_dataset.features ```python out {'sentence1': Value(dtype='string', id=None), 'sentence2': Value(dtype='string', id=None), - 'label': ClassLabel(num_classes=2, names=['not_equivalent', 'equivalent'], names_file=None, id=None), + 'label': ClassLabel(names=['not_equivalent', 'equivalent'], id=None), 'idx': Value(dtype='int32', id=None)} ``` diff --git a/chapters/hi/chapter3/2.mdx b/chapters/hi/chapter3/2.mdx index 501c3dc5e..474570509 100644 --- a/chapters/hi/chapter3/2.mdx +++ b/chapters/hi/chapter3/2.mdx @@ -143,7 +143,7 @@ raw_train_dataset.features ```python out {'sentence1': Value(dtype='string', id=None), 'sentence2': Value(dtype='string', id=None), - 'label': ClassLabel(num_classes=2, names=['not_equivalent', 'equivalent'], names_file=None, id=None), + 'label': ClassLabel(names=['not_equivalent', 'equivalent'], id=None), 'idx': Value(dtype='int32', id=None)} ``` diff --git a/chapters/it/chapter3/2.mdx b/chapters/it/chapter3/2.mdx index c83c1601a..c30c858a8 100644 --- a/chapters/it/chapter3/2.mdx +++ b/chapters/it/chapter3/2.mdx @@ -144,7 +144,7 @@ raw_train_dataset.features ```python out {'sentence1': Value(dtype='string', id=None), 'sentence2': Value(dtype='string', id=None), - 'label': ClassLabel(num_classes=2, names=['not_equivalent', 'equivalent'], names_file=None, id=None), + 'label': ClassLabel(names=['not_equivalent', 'equivalent'], id=None), 'idx': Value(dtype='int32', id=None)} ``` diff --git a/chapters/ru/chapter3/2.mdx b/chapters/ru/chapter3/2.mdx index 57d761056..156ff308e 100644 --- a/chapters/ru/chapter3/2.mdx +++ b/chapters/ru/chapter3/2.mdx @@ -143,7 +143,7 @@ raw_train_dataset.features ```python out {'sentence1': Value(dtype='string', id=None), 'sentence2': Value(dtype='string', id=None), - 'label': ClassLabel(num_classes=2, names=['not_equivalent', 'equivalent'], names_file=None, id=None), + 'label': ClassLabel(names=['not_equivalent', 'equivalent'], id=None), 'idx': Value(dtype='int32', id=None)} ``` diff --git a/chapters/th/chapter3/2.mdx b/chapters/th/chapter3/2.mdx index a9479c075..516fee560 100644 --- a/chapters/th/chapter3/2.mdx +++ b/chapters/th/chapter3/2.mdx @@ -143,7 +143,7 @@ raw_train_dataset.features ```python out {'sentence1': Value(dtype='string', id=None), 'sentence2': Value(dtype='string', id=None), - 'label': ClassLabel(num_classes=2, names=['not_equivalent', 'equivalent'], names_file=None, id=None), + 'label': ClassLabel(names=['not_equivalent', 'equivalent'], id=None), 'idx': Value(dtype='int32', id=None)} ``` diff --git a/chapters/vi/chapter3/2.mdx b/chapters/vi/chapter3/2.mdx index 3d2b3af2d..f09900ebe 100644 --- a/chapters/vi/chapter3/2.mdx +++ b/chapters/vi/chapter3/2.mdx @@ -139,7 +139,7 @@ raw_train_dataset.features ```python out {'sentence1': Value(dtype='string', id=None), 'sentence2': Value(dtype='string', id=None), - 'label': ClassLabel(num_classes=2, names=['not_equivalent', 'equivalent'], names_file=None, id=None), + 'label': ClassLabel(names=['not_equivalent', 'equivalent'], id=None), 'idx': Value(dtype='int32', id=None)} ``` diff --git a/chapters/zh-CN/chapter3/2.mdx b/chapters/zh-CN/chapter3/2.mdx index 03f5e61c0..65d26dd34 100644 --- a/chapters/zh-CN/chapter3/2.mdx +++ b/chapters/zh-CN/chapter3/2.mdx @@ -139,7 +139,7 @@ raw_train_dataset.features ```python out {'sentence1': Value(dtype='string', id=None), 'sentence2': Value(dtype='string', id=None), - 'label': ClassLabel(num_classes=2, names=['not_equivalent', 'equivalent'], names_file=None, id=None), + 'label': ClassLabel(names=['not_equivalent', 'equivalent'], id=None), 'idx': Value(dtype='int32', id=None)} ``` diff --git a/chapters/zh-TW/chapter3/2.mdx b/chapters/zh-TW/chapter3/2.mdx index 5dd10b0a0..ff3903167 100644 --- a/chapters/zh-TW/chapter3/2.mdx +++ b/chapters/zh-TW/chapter3/2.mdx @@ -139,7 +139,7 @@ raw_train_dataset.features ```python out {'sentence1': Value(dtype='string', id=None), 'sentence2': Value(dtype='string', id=None), - 'label': ClassLabel(num_classes=2, names=['not_equivalent', 'equivalent'], names_file=None, id=None), + 'label': ClassLabel(names=['not_equivalent', 'equivalent'], id=None), 'idx': Value(dtype='int32', id=None)} ```