Book from epd positions

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

Moderators: hgm, Rebel, chrisw

giovanni
Posts: 142
Joined: Wed Jul 08, 2015 12:30 pm

Book from epd positions

Post by giovanni »

I have a file with epd positions generated by IDEA analysis. Is there a way to generate a book.bin file from them?
Dann Corbit
Posts: 12541
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Book from epd positions

Post by Dann Corbit »

giovanni wrote:I have a file with epd positions generated by IDEA analysis. Is there a way to generate a book.bin file from them?
Ed Shroder converted EPD that I sent him into several book formats. I think it is likely that such a thing is possible, perhaps through a round about way.
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: Book from epd positions

Post by MikeB »

giovanni wrote:I have a file with epd positions generated by IDEA analysis. Is there a way to generate a book.bin file from them?
I can take a stab at it, PM me if you want to send me the file.
User avatar
Rebel
Posts: 6993
Joined: Thu Aug 18, 2011 12:04 pm

Re: Book from epd positions

Post by Rebel »

Dann Corbit wrote:
giovanni wrote:I have a file with epd positions generated by IDEA analysis. Is there a way to generate a book.bin file from them?
Ed Shroder converted EPD that I sent him into several book formats. I think it is likely that such a thing is possible, perhaps through a round about way.
Giovanni,

I had to look it up how I did make those large polyglot books [ http://rebel13.nl/download/books.html ] see section Polyglot opening books.

First step is to convert the EPD to PGN and then use the Polyglot program itself to create a bin-file. With the Polyglot option merge you can merge 2 bin-files.

I used version polyglot1.4w should be somewhere on the net, other versions might work as well.
giovanni
Posts: 142
Joined: Wed Jul 08, 2015 12:30 pm

Re: Book from epd positions

Post by giovanni »

Rebel wrote:
Dann Corbit wrote:
giovanni wrote:I have a file with epd positions generated by IDEA analysis. Is there a way to generate a book.bin file from them?
Ed Shroder converted EPD that I sent him into several book formats. I think it is likely that such a thing is possible, perhaps through a round about way.
Giovanni,

I had to look it up how I did make those large polyglot books [ http://rebel13.nl/download/books.html ] see section Polyglot opening books.

First step is to convert the EPD to PGN and then use the Polyglot program itself to create a bin-file. With the Polyglot option merge you can merge 2 bin-files.

I used version polyglot1.4w should be somewhere on the net, other versions might work as well.
Thanks Ed. I will try, but let me take this opportunity to thank you (and Dann) for the great contributions you have given to our field.
giovanni
Posts: 142
Joined: Wed Jul 08, 2015 12:30 pm

Re: Book from epd positions

Post by giovanni »

Hi. I tried to convert the epd file to pgn using either EPD2Diag and epdConvert tools, but the 'ce' field containing the centipawn evaluation is not kept. Also polyglot is not able to make any book from the generated pgn file in both cases. The following are the first few lines of the epd files I am using:
Thanks again.
Giovanni


rnbqkb1r/pp3ppp/4pn2/2p5/2Pp4/5NP1/PP1PPPBP/RNBQ1RK1 w kq - ce 11; acd 22; acs 25; pv d3 Nc6 e3;
rnbqkb1r/pp3ppp/4pn2/2p5/2Pp4/3P1NP1/PP2PPBP/RNBQ1RK1 b kq - ce -17; acd 23; acs 24; pv Nc6 e3;
r1bqkb1r/pp3ppp/2n1pn2/2p5/2Pp4/3P1NP1/PP2PPBP/RNBQ1RK1 w kq - ce 17; acd 21; acs 24; pv e3 Be7 Re1;
r1bqkb1r/pp3ppp/2n1pn2/2p5/2Pp4/3PPNP1/PP3PBP/RNBQ1RK1 b kq - ce -21; acd 22; acs 24; pv Bd6 ed4;
Dann Corbit
Posts: 12541
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Book from epd positions

Post by Dann Corbit »

giovanni wrote:Hi. I tried to convert the epd file to pgn using either EPD2Diag and epdConvert tools, but the 'ce' field containing the centipawn evaluation is not kept. Also polyglot is not able to make any book from the generated pgn file in both cases. The following are the first few lines of the epd files I am using:
Thanks again.
Giovanni


rnbqkb1r/pp3ppp/4pn2/2p5/2Pp4/5NP1/PP1PPPBP/RNBQ1RK1 w kq - ce 11; acd 22; acs 25; pv d3 Nc6 e3;
rnbqkb1r/pp3ppp/4pn2/2p5/2Pp4/3P1NP1/PP2PPBP/RNBQ1RK1 b kq - ce -17; acd 23; acs 24; pv Nc6 e3;
r1bqkb1r/pp3ppp/2n1pn2/2p5/2Pp4/3P1NP1/PP2PPBP/RNBQ1RK1 w kq - ce 17; acd 21; acs 24; pv e3 Be7 Re1;
r1bqkb1r/pp3ppp/2n1pn2/2p5/2Pp4/3PPNP1/PP3PBP/RNBQ1RK1 b kq - ce -21; acd 22; acs 24; pv Bd6 ed4;
For opening positions, I recommend a minimum depth of 37 plies:

r1bqkb1r/pp3ppp/2n1pn2/2p5/2Pp4/3P1NP1/PP2PPBP/RNBQ1RK1 w kq - acd 37; acs 421; bm e3; cce 8; ce 16; id "759"; pm e3 {71} e4 {20} Na3 {10} a3 {7} Bf4 {4} Bd2 {3} Bg5 {3} Qa4 {3}; pv e3 e5 exd4 exd4 Bf4 Be7 Ne5 Nxe5 Bxe5 O-O Re1 Bd6 Bxf6 Qxf6 Nd2 Qh6 Ne4 Be7 f4 Rb8 Nf2 Bd6 Bd5 a6 Qf3 Qg6 Be4 Qh6 b3 b5 Bd5 Bd7 f5 bxc4 Bxc4 Rbc8 f6 Qxf6 Qxf6 gxf6 Bxa6 Rb8 Ne4 Be7 Bc4; white_wins 41; black_wins 39; draws 29;
r1bqkb1r/pp3ppp/2n1pn2/2p5/2Pp4/3PPNP1/PP3PBP/RNBQ1RK1 b kq - acd 37; acs 254; bm e5; cce -58; ce -6; pm Be7 {54} e5 {14} Bd6 {6} dxe3 {2} h6 {1}; pv e5 exd4 exd4 Bf4 Be7 Ne5 Nxe5 Bxe5 O-O Re1 a6 Nd2 Ng4 Qe2 Nxe5 Qxe5 Bd6 Qh5 Ra7 Bd5 b6 Ne4 Be7 Re2 g6 Qh6 Bb7 Bxb7 Rxb7 Qh3 b5 Nd2 Bd6 Rae1 Re7 Qh6 Rxe2 Rxe2 Qd7 Re1 Be7 cxb5 axb5 Ne4; white_wins 31; black_wins 22; draws 16;
rnbqkb1r/pp3ppp/4pn2/2p5/2Pp4/3P1NP1/PP2PPBP/RNBQ1RK1 b kq - acd 37; acs 172; bm Nc6; cce -13; ce -3; pm Nc6 {39} Be7 {3}; pv Nc6 e3 e5 exd4 exd4 Re1+ Be7 Bg5 O-O Ne5 Nxe5 Rxe5 Qc7 Qe1 Be6 Rxe6 fxe6 Qxe6+ Kh8 Bf4 Qc8 Qxc8 Raxc8 Bxb7 Rcd8 Nd2 Bd6 Bxd6 Rxd6 Nb3 Rb6 Bg2 Re8 Rb1 Re2 f4 Rc2 Nxc5 Rcxb2 Rxb2 Rxb2 Ne6 Rxa2 Nxd4; white_wins 11; black_wins 10; draws 14;
rnbqkb1r/pp3ppp/4pn2/2p5/2Pp4/5NP1/PP1PPPBP/RNBQ1RK1 w kq - acd 37; acs 170; bm e3; cce 35; ce 5; pm e3 {90} d3 {33} b4 {32} Na3 {6} e4 {1}; pv e3 Nc6 exd4 cxd4 d3 Bd6 a3 a5 Bg5 h6 Bxf6 Qxf6 Nbd2 Qe7 Ne4 Bc7 c5 O-O Nfd2 Bd7 Nc4 Ne5 Nxe5 Bxe5 b4 axb4 f4 Bb8 axb4 Rxa1 Qxa1 Bb5 Qxd4 Rd8 Qa1 Rxd3 Re1 Bc6 Nf2 Rd8 Rd1 Rxd1+ Nxd1 Qc7 Nc3; white_wins 50; black_wins 39; draws 50;
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
User avatar
Rebel
Posts: 6993
Joined: Thu Aug 18, 2011 12:04 pm

Re: Book from epd positions

Post by Rebel »

giovanni wrote:Hi. I tried to convert the epd file to pgn using either EPD2Diag and epdConvert tools, but the 'ce' field containing the centipawn evaluation is not kept. Also polyglot is not able to make any book from the generated pgn file in both cases. The following are the first few lines of the epd files I am using:
Thanks again.
Giovanni


rnbqkb1r/pp3ppp/4pn2/2p5/2Pp4/5NP1/PP1PPPBP/RNBQ1RK1 w kq - ce 11; acd 22; acs 25; pv d3 Nc6 e3;
rnbqkb1r/pp3ppp/4pn2/2p5/2Pp4/3P1NP1/PP2PPBP/RNBQ1RK1 b kq - ce -17; acd 23; acs 24; pv Nc6 e3;
r1bqkb1r/pp3ppp/2n1pn2/2p5/2Pp4/3P1NP1/PP2PPBP/RNBQ1RK1 w kq - ce 17; acd 21; acs 24; pv e3 Be7 Re1;
r1bqkb1r/pp3ppp/2n1pn2/2p5/2Pp4/3PPNP1/PP3PBP/RNBQ1RK1 b kq - ce -21; acd 22; acs 24; pv Bd6 ed4;
What you want (keeping analysis stuff) is not possible in the Polyglot format. That was one of the reasons creating *.EBF books.

As you can see in the first table of this page EBF books not only keep the score but also can keep the engine.