christopher commited on
Commit
917fc2d
1 Parent(s): a004998

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +20 -16
README.md CHANGED
@@ -43,26 +43,30 @@ tags:
43
 
44
  4,062,423 chess puzzles, rated and tagged. See them in action on [Lichess](https://lichess.org/training/themes).
45
 
46
- ## Dataset Details
 
 
47
 
48
  ```python
49
- Dataset({
50
- features: ['PuzzleId', 'FEN', 'Moves', 'Rating', 'RatingDeviation', 'Popularity', 'NbPlays', 'Themes', 'GameUrl', 'OpeningTags'],
51
- num_rows: 4062423
52
- })
53
  ```
54
 
55
- ```json
56
- {'PuzzleId': '00008',
57
- 'FEN': 'r6k/pp2r2p/4Rp1Q/3p4/8/1N1P2R1/PqP2bPP/7K b - - 0 24',
58
- 'Moves': 'f2g3 e6e7 b2b1 b3c1 b1c1 h6c1',
59
- 'Rating': 1931,
60
- 'RatingDeviation': 76,
61
- 'Popularity': 94,
62
- 'NbPlays': 6319,
63
- 'Themes': 'crushing hangingPiece long middlegame',
64
- 'GameUrl': 'https://lichess.org/787zsVup/black#47',
65
- 'OpeningTags': None}
 
 
 
 
66
  ```
67
 
68
  ### Dataset Creation
 
43
 
44
  4,062,423 chess puzzles, rated and tagged. See them in action on [Lichess](https://lichess.org/training/themes).
45
 
46
+ ## Dataset Usage
47
+
48
+ Using the `datasets` library:
49
 
50
  ```python
51
+ from datasets import load_dataset
52
+ dset = load_dataset("Lichess/puzzles", split="train")
 
 
53
  ```
54
 
55
+ ## Dataset Details
56
+
57
+ One row of the dataset looks like this:
58
+
59
+ ```python
60
+ {'PuzzleId': '0009B',
61
+ 'FEN': 'r2qr1k1/b1p2ppp/pp4n1/P1P1p3/4P1n1/B2P2Pb/3NBP1P/RN1QR1K1 b - - 1 16',
62
+ 'Moves': 'b6c5 e2g4 h3g4 d1g4',
63
+ 'Rating': 1112,
64
+ 'RatingDeviation': 74,
65
+ 'Popularity': 87,
66
+ 'NbPlays': 569,
67
+ 'Themes': 'advantage middlegame short',
68
+ 'GameUrl': 'https://lichess.org/4MWQCxQ6/black#31',
69
+ 'OpeningTags': 'Kings_Pawn_Game Kings_Pawn_Game_Leonardis_Variation'}
70
  ```
71
 
72
  ### Dataset Creation