Need Help with Large PGN's

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

jwes
Posts: 778
Joined: Sat Jul 01, 2006 7:11 am

Re: Need Help with Large PGN's

Post by jwes »

I think you can do all this in SCID (or probably with ChessDB) by creating a spelling.ssp file. The format is explained in the start of the file that comes with SCID. Spellcheck would then edit all your names for you and by changing the names of old versions from whatever to OLD_whatever you could easily filter out old versions.
Vinvin
Posts: 5313
Joined: Thu Mar 09, 2006 9:40 am
Full name: Vincent Lejeune

Re: Need Help with Large PGN's

Post by Vinvin »

Adam Hair wrote:
Vinvin wrote:Here's what I used to make the big (716 226 games) rating list ( see here http://www.talkchess.com/forum/viewtopi ... 409#331409 ) :

1. Remove annotations
- Use the 40H PGN Utilities -> http://www.hoflink.com/~npollock/chess.html

2. Edit engine names
- Textpad is very efficient to edit text files of several GB (!) -> http://www.textpad.com/

3. Combine the files
- You can use the "copy" command from the windows command line exemple : "copy file1.pgn+file2.pgn+file3.pgn bigfile.txt"

4. Remove games involving older engine versions
- The 40H PGN Utilities should do this too, see doc here : http://www.hoflink.com/~npollock/overview-40H.txt

My best,
Vincent
If TextPad works with large files better than NotePad then I will definitely
use it.
There no comparison possible between TextPad and NotePad !
(they should really change the name, "TextPad" sound to close to "NotePad" !)
Norm Pollock
Posts: 1080
Joined: Thu Mar 09, 2006 4:15 pm
Location: Long Island, NY, USA

Re: Need Help with Large PGN's

Post by Norm Pollock »

Vinvin wrote:Hi norm ! Thanks for your utilities.

I got a little bug some times ago when I removed moves from games : IIRC, it's when there's a comment "{}" on the same line as the results (in the end of the game), the program stop just after that and I lost the end of the file ... if you are interested, I can look to reproduce that ...

My best,
Vincent
Hi Vincent,

Please try to reproduce the problem and let me know which program it is, and all the facts about the problem. Preliminary possibility is that you may have messed up the comment braces when you removed something. I'll take a look.
-Norm
Updated links for 40H Tools and Databases
http://40Hchess.epizy.com
http://nk-qy.info/40h
Adam Hair
Posts: 3226
Joined: Wed May 06, 2009 10:31 pm
Location: Fuquay-Varina, North Carolina

Re: Need Help with Large PGN's

Post by Adam Hair »

Thank you everybody for the suggestions. By delving more deeply into
Norm's suite of utilities and by using a vastly better text editor ( I'm using
NotePad++), everything is going quicker, easier, and more accurate.
Vinvin
Posts: 5313
Joined: Thu Mar 09, 2006 9:40 am
Full name: Vincent Lejeune

Re: Need Help with Large PGN's

Post by Vinvin »

I couldn't reproduced the exact bug I got under winXP (I'm under Win7 now)

Try this "truncate.exe file.pgn 1" for the next file ... the result is lost for the 3rd game (under Winxp the program stop and the file is cut)


[Event "WBEC1-2nd Division"]
[Site "DUAL-P3-933"]
[Date "2001.09.24"]
[Round "4.2"]
[Number "586"]
[White "Fortress 1.62"]
[Black "Pepito 1.21"]
[Result "0-1"]
[TimeControl "40/2400"]

1. e4 e5 2. Nf3 Nc6 3. c3 f5 4. d4 d6 5. Bb5 fxe4 6. Nxe5 dxe5 7. Qh5+ Ke7
8. Bxc6 bxc6 9. Qxe5+ Kf7 10. Bg5 Nf6 11. Bxf6 gxf6 12. Qxe4 Rb8 13. Qe2
Rg8 14. O-O Qd5 15. f3 c5 16. Rd1 Bh3 17. g3 Bh6 18. Nd2 Rxb2 19. Qd3 Kg7
20. Nf1 Re8 21. dxc5 Re1 22. Rxe1 Qxd3 23. Re7+ Kg6 24. f4 Rg2+ 25. Kh1 Qf3
26. f5+ Kh5 27. Rxh7 Rxg3#
{ Jaque mate } 0-1

[Event "WBEC1-2nd Division"]
[Site "DUAL-P3-933"]
[Date "2001.09.24"]
[Round "4.3"]
[Number "587"]
[White "Pepito 1.21"]
[Black "Fortress 1.62"]
[Result "1-0"]
[TimeControl "40/2400"]

1. b4 e5 2. Bb2 Bxb4 3. Bxe5 Nf6 4. e3 Nc6 5. Bb2 d5 6. Bb5 Bd7 7. Nf3 a6
8. Ba4 Qe7 9. O-O O-O-O 10. d3 Ne5 11. Bxe5 Bxa4 12. Qc1 Rhg8 13. Qb2 Ng4
14. Bc3 Bc5 15. h3 Nxf2 16. Bd4 Bxd4 17. exd4 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kg6 102. Rd8 Ra6 103. Rg8+ Kh7
104. Rf8 Rc6 105. Ke3 Kg7 106. Re8 Rc7 107. Kf3 Ra7 108. Rc8 Ra3+ 109. Kg2
Re3 110. Rc4 Rd3 111. Rc8 Kg6 112. Kf2 Rd7 113. Ke3 Kg7 114. Rb8 Ra7 115.
Kf3 Ra3+ 116. Kg2 Re3 117. Rb4 Rc3 118. Rb8 Kg6 119. Kf2 Rc4 120. Kf3 Rc7
121. Rg8+ Kh7 122. Rd8 Rc3+ 123. Kf2 Rc2+ 124. Kf3 Rc6 125. Ke3 Rc1 126.
Rf8 Rc3+ 127. Kf2 Rc2+ 128. Kf3 Kg7 129. Rb8 Rc5 130. Ke3 Ra5 131. Rb7+ Kg6
132. Rb8 Ra6 133. Rg8+ Kh7 134. Re8 Kg7 135. Re7+ Kg6 136. Re8 Kf7 137. Rh8
Ra3+ 138. Kf2 Ra2+ 139. Kf3 Kg6 140. Rg8+ Kh7 141. Rd8 Ra3+ 142. Kf2 Kg7
143. Rc8 Ra2+ 144. Kf3 Ra5 145. Kf2 Ra4 146. Kf3 Ra6 147. Rc7+ Kg6 148. Rc8
Ra3+ 149. Kf2 Ra4 150. Kf3 Rb4 151. Rh8 Kg5 152. Rg8+ Kh6 153. Rh8+ Kg6
154. Rg8+
{it seems both engines do not claim a draw at the 50 move roule}1/2-1/2

[Event "WBEC1-2nd Division"]
[Site "DUAL-P3-933"]
[Date "2001.09.24"]
[Round "4.2"]
[Number "586"]
[White "Fortress 1.62"]
[Black "Pepito 1.21"]
[Result "0-1"]
[TimeControl "40/2400"]

1. e4 e5 2. Nf3 Nc6 3. c3 f5 4. d4 d6 5. Bb5 fxe4 6. Nxe5 dxe5 7. Qh5+ Ke7
8. Bxc6 bxc6 9. Qxe5+ Kf7 10. Bg5 Nf6 11. Bxf6 gxf6 12. Qxe4 Rb8 13. Qe2
Rg8 14. O-O Qd5 15. f3 c5 16. Rd1 Bh3 17. g3 Bh6 18. Nd2 Rxb2 19. Qd3 Kg7
20. Nf1 Re8 21. dxc5 Re1 22. Rxe1 Qxd3 23. Re7+ Kg6 24. f4 Rg2+ 25. Kh1 Qf3
26. f5+ Kh5 27. Rxh7 Rxg3#
{ Jaque mate } 0-1
Norm Pollock
Posts: 1080
Joined: Thu Mar 09, 2006 4:15 pm
Location: Long Island, NY, USA

Re: Need Help with Large PGN's

Post by Norm Pollock »

Vinvin wrote:I couldn't reproduced the exact bug I got under winXP (I'm under Win7 now)

Try this "truncate.exe file.pgn 1" for the next file ... the result is lost for the 3rd game (under Winxp the program stop and the file is cut)


[Event "WBEC1-2nd Division"]
[Site "DUAL-P3-933"]
[Date "2001.09.24"]
[Round "4.2"]
[Number "586"]
[White "Fortress 1.62"]
[Black "Pepito 1.21"]
[Result "0-1"]
[TimeControl "40/2400"]

1. e4 e5 2. Nf3 Nc6 3. c3 f5 4. d4 d6 5. Bb5 fxe4 6. Nxe5 dxe5 7. Qh5+ Ke7
8. Bxc6 bxc6 9. Qxe5+ Kf7 10. Bg5 Nf6 11. Bxf6 gxf6 12. Qxe4 Rb8 13. Qe2
Rg8 14. O-O Qd5 15. f3 c5 16. Rd1 Bh3 17. g3 Bh6 18. Nd2 Rxb2 19. Qd3 Kg7
20. Nf1 Re8 21. dxc5 Re1 22. Rxe1 Qxd3 23. Re7+ Kg6 24. f4 Rg2+ 25. Kh1 Qf3
26. f5+ Kh5 27. Rxh7 Rxg3#
{ Jaque mate } 0-1

[Event "WBEC1-2nd Division"]
[Site "DUAL-P3-933"]
[Date "2001.09.24"]
[Round "4.3"]
[Number "587"]
[White "Pepito 1.21"]
[Black "Fortress 1.62"]
[Result "1-0"]
[TimeControl "40/2400"]

1. b4 e5 2. Bb2 Bxb4 3. Bxe5 Nf6 4. e3 Nc6 5. Bb2 d5 6. Bb5 Bd7 7. Nf3 a6
8. Ba4 Qe7 9. O-O O-O-O 10. d3 Ne5 11. Bxe5 Bxa4 12. Qc1 Rhg8 13. Qb2 Ng4
14. Bc3 Bc5 15. h3 Nx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7 100. Rd8 Ra4 101. Rd7+ Kg6 102. Rd8 Ra6 103. Rg8+ Kh7
104. Rf8 Rc6 105. Ke3 Kg7 106. Re8 Rc7 107. Kf3 Ra7 108. Rc8 Ra3+ 109. Kg2
Re3 110. Rc4 Rd3 111. Rc8 Kg6 112. Kf2 Rd7 113. Ke3 Kg7 114. Rb8 Ra7 115.
Kf3 Ra3+ 116. Kg2 Re3 117. Rb4 Rc3 118. Rb8 Kg6 119. Kf2 Rc4 120. Kf3 Rc7
121. Rg8+ Kh7 122. Rd8 Rc3+ 123. Kf2 Rc2+ 124. Kf3 Rc6 125. Ke3 Rc1 126.
Rf8 Rc3+ 127. Kf2 Rc2+ 128. Kf3 Kg7 129. Rb8 Rc5 130. Ke3 Ra5 131. Rb7+ Kg6
132. Rb8 Ra6 133. Rg8+ Kh7 134. Re8 Kg7 135. Re7+ Kg6 136. Re8 Kf7 137. Rh8
Ra3+ 138. Kf2 Ra2+ 139. Kf3 Kg6 140. Rg8+ Kh7 141. Rd8 Ra3+ 142. Kf2 Kg7
143. Rc8 Ra2+ 144. Kf3 Ra5 145. Kf2 Ra4 146. Kf3 Ra6 147. Rc7+ Kg6 148. Rc8
Ra3+ 149. Kf2 Ra4 150. Kf3 Rb4 151. Rh8 Kg5 152. Rg8+ Kh6 153. Rh8+ Kg6
154. Rg8+
{it seems both engines do not claim a draw at the 50 move roule}1/2-1/2

[Event "WBEC1-2nd Division"]
[Site "DUAL-P3-933"]
[Date "2001.09.24"]
[Round "4.2"]
[Number "586"]
[White "Fortress 1.62"]
[Black "Pepito 1.21"]
[Result "0-1"]
[TimeControl "40/2400"]

1. e4 e5 2. Nf3 Nc6 3. c3 f5 4. d4 d6 5. Bb5 fxe4 6. Nxe5 dxe5 7. Qh5+ Ke7
8. Bxc6 bxc6 9. Qxe5+ Kf7 10. Bg5 Nf6 11. Bxf6 gxf6 12. Qxe4 Rb8 13. Qe2
Rg8 14. O-O Qd5 15. f3 c5 16. Rd1 Bh3 17. g3 Bh6 18. Nd2 Rxb2 19. Qd3 Kg7
20. Nf1 Re8 21. dxc5 Re1 22. Rxe1 Qxd3 23. Re7+ Kg6 24. f4 Rg2+ 25. Kh1 Qf3
26. f5+ Kh5 27. Rxh7 Rxg3#
{ Jaque mate } 0-1
Hi Vincent,

Let me start off by saying "thank you" for finding this. And I must say that you had me worried for a couple of hours. There definitely is a problem involving 3 of my programs ("truncate", "minPly" and "trim") with the above pgn file, and the problem is specific to the third game:

Code: Select all

[Event "WBEC1-2nd Division"]
[Site "DUAL-P3-933"]
[Date "2001.09.24"]
[Round "4.4"]
[Number "588"]
[White "Fortress 1.62"]
[Black "Pepito 1.21"]
[Result "1/2-1/2"]
[TimeControl "40/2400"]

1. e4 e5 2. Nf3 Nc6 3. Bc4 Bc5 4. d3 Nf6 5. Nc3 d6 6. Bg5 h6 7. Bxf6 Qxf6
8. Nd5 Qd8 9. Bb5 O-O 10. Bc4 Bg4 11. Ne3 Bxe3 12. fxe3 Na5 13. Bb3 Nxb3
14. cxb3 d5 15. O-O dxe4 16. dxe4 Re8 17. Qc2 Qe7 18. Rac1 c6 19. h3 Bh5
20. Rf2 Rad8 21. Rcf1 Bg6 22. Qc4 Rc8 23. Rd1 b5 24. Qc2 Qb4 25. Nd2 Qa5
26. a3 Qb6 27. Nf1 a5 28. Rd7 f6 29. Rfd2 Bf7 30. Rd1 c5 31. Qe2 Rf8 32.
Ng3 g6 33. R1d6 Rc6 34. Qd3 c4 35. bxc4 Bxc4 36. Rxc6 Qxc6 37. Qd6 Qxd6 38.
Rxd6 Kg7 39. h4 h5 40. Kh2 Rc8 41. Rd7+ Kf8 42. Ra7 b4 43. Rxa5 b3 44. Nh1
Bf7 45. Nf2 Rc2 46. Ra8+ Kg7 47. Nd3 Bc4 48. Rd8 Bxd3 49. Rxd3 Rxb2 50.
Rd7+ Kh6 51. Rb7 g5 52. hxg5+ Kxg5 53. Rg7+ Kh6 54. Rb7 Rb1 55. g3 b2 56.
Kg2 Re1 57. Rxb2 R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 140. Rg8+ Kh7 141. Rd8 Ra3+ 142. Kf2 Kg7
143. Rc8 Ra2+ 144. Kf3 Ra5 145. Kf2 Ra4 146. Kf3 Ra6 147. Rc7+ Kg6 148. Rc8
Ra3+ 149. Kf2 Ra4 150. Kf3 Rb4 151. Rh8 Kg5 152. Rg8+ Kh6 153. Rh8+ Kg6
154. Rg8+
{it seems both engines do not claim a draw at the 50 move roule}1/2-1/2
If you remove this game there is no problem. If your have this game alone, there is a problem.

The problem is all due to the fact there is no "space" character separating the comment on the last line from the result that follows. When I put in a space, there is no problem.

I thought of a way to "fix" the programs, but it would involve putting a space before every "{" and after every "}" in the file to make sure at least one exists. That would involve testing every character. Needless to say that would slow down the program immensely.

Then it dawned upon me, that not having a "space" character before and after a comment is probably ILLEGAL according to PGN Standards.

So I looked it up, and sure enough, it is ILLEGAL. Here is an excerpt from

http://www.very-best.de/pgn-spec.htm#5.

Code: Select all

 5. Commentary
Comment text may appear in PGN data. There are two kinds of comments. The first kind is the "rest of line" comment; this comment type starts with a semicolon character and continues to the end of the line. The second kind starts with a left brace character and continues to the next right brace character. Comments cannot appear inside any token.
Comments cannot appear inside any token.

Therefore,

{it seems both engines do not claim a draw at the 50 move roule}1/2-1/2

should be

{it seems both engines do not claim a draw at the 50 move roule} 1/2-1/2

-Norm
Updated links for 40H Tools and Databases
http://40Hchess.epizy.com
http://nk-qy.info/40h