Bin book help

Programming Topics (Computer Chess) and technical aspects as test techniques, book building, program tuning etc

Moderator: Andres Valverde

Bin book help

Postby karo » 18 Jun 2009, 12:55

I am getting a error while making bin books please take a look at this


http://rapidshare.com/files/245885490/image.jpg.html

My operating sytem is window xp 64 bits

I have cleaned all the syntex errors from the pgn still i am getting this error.

If any one have utility for cleaning PGN files kindly let me know.
PGN Trim does not support my operating system
I tried even Normal 32 Utility

Kindly help me out for an utility for compatible system.

Regards

Karo.
karo
 
Posts: 11
Joined: 23 Mar 2009, 21:18

Re: Bin book help

Postby Volker Pittlik » 18 Jun 2009, 13:08

It looks like if there is an error in the pgn. Try to keep the pgn as clean as possible. IIRC SCID can do it. PGN-extract does that very good. Whenever I make a book with polyglot I always clean it with pgn-extract (using -7 as one parameter).

vp
User avatar
Volker Pittlik
 
Posts: 1031
Joined: 24 Sep 2004, 10:14
Location: Murten / Morat, Switzerland

Re: Bin book help

Postby Marc Lacrosse » 18 Jun 2009, 13:48

This error message tells you that there is an error in the header part of the 6202nd game of your database : one of the PGN tags does not comply with the PGN specification.
I second Volker's advice : PGNextract by David Barnes is the best PGN cleaner by far.
But in my experience in a few cases with strange characters in the headers of the games, even PGNextract does not succeed in correcting faulty tags.
In that case you still have the option to open the pgn file in a good text editor (I use the excellent shareware EditPad) and go to the line number that was given by polyglot's error message for some manual correction of the faulty line.
The most frequent error is the presence of forbidden characters within the tag value (for example a double quote within the name of a player or strange characters coming from erroneously interpreted cyrillic files).
Do correct it by hand and do not forget to ask your editor to find further occurences of the same error within the file.
Then you save the corrected file, relaunch polyglot and so on until everything is ok.

Marc
Marc Lacrosse
 
Posts: 116
Joined: 29 Jan 2005, 09:04
Location: Belgium

Re: Bin book help

Postby karo » 19 Jun 2009, 11:58

Thanks Guys for your Guideline. I will try PGN-extract can any one tell whats the command in it for cleaning PGN files.
karo
 
Posts: 11
Joined: 23 Mar 2009, 21:18

Re: Bin book help

Postby Volker Pittlik » 19 Jun 2009, 12:30

karo wrote:Thanks Guys for your Guideline. I will try PGN-extract can any one tell whats the command in it for cleaning PGN files.


Its a powerful commandline tool so you have to read the README coming with the program. Here is an example. Let's assume you want to try to clean a file from TWIC. Make sure there only normal chess games in the files. No studies no FRC. YOu can do that easily with SCID for example.

Now if you have such a file (twic727.pgn for example) I would use:

Code: Select all
pgn-extract -7 -V -C -N -llog.txt -otwic727.clean.pgn twic727.pgn


That creates a clean pgn file as well as a logfile. If you run Linux omit the .txt stuff. The original pgn is unchanged. There are other options to overwrite the original fike. Personally I don't like that. See the README.

So the common form of the command is:

Code: Select all
pgn-extract -7 -V -C -N -l<logfile> -o<outputfile> <inputfile>


hth

vp
User avatar
Volker Pittlik
 
Posts: 1031
Joined: 24 Sep 2004, 10:14
Location: Murten / Morat, Switzerland

Re: Bin book help

Postby karo » 20 Jun 2009, 06:21

Thanks Volker Pittlik. :D
karo
 
Posts: 11
Joined: 23 Mar 2009, 21:18


Return to Programming and Technical Discussions

Who is online

Users browsing this forum: No registered users and 23 guests