verAPPelt commited on
Commit
72d6c25
·
verified ·
1 Parent(s): c35f7c4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +31 -0
README.md CHANGED
@@ -44,6 +44,37 @@ from datasets import load_dataset
44
  tomt_kis = load_dataset("webis/tip-of-my-tongue-known-item-search")
45
  ```
46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
 
48
  # Dataset Structure
49
 
 
44
  tomt_kis = load_dataset("webis/tip-of-my-tongue-known-item-search")
45
  ```
46
 
47
+ To see the size of the dataset execute
48
+ ```
49
+ len(tomt_kis['train'])
50
+ ```
51
+
52
+ You can access the first respectively last row in TOMT-KIS using
53
+ ```
54
+ # Get the first row in the dataset
55
+ tomt_kis['train'][0]
56
+
57
+
58
+ # Get the last row in the dataset
59
+ tomt_kis['train'][-1]
60
+ ```
61
+
62
+ ... and a specific column:
63
+ ```
64
+ # Returns a list of all the values in the the title column
65
+ tomt_kis['train']['title']
66
+
67
+ # Returns the title of the first column
68
+ tomt_kis['train'][0]['title']
69
+ ```
70
+
71
+ Iterate over the TOMT-KIS dataset:
72
+ ```
73
+ for element in tomt_kis['train']:
74
+ print(element)
75
+ ```
76
+
77
+ For further information see the (Datasets documentation)[https://huggingface.co/docs/datasets/index].
78
 
79
  # Dataset Structure
80