I want to create an EPD testsuite from a PGN collection or from an existing opening book.
Every position of this testsuite should contain (as best moves) all moves made by GMs in the position with the numbers how many times the move was made. Something like:
rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - bm e4 d4 Nf3 c4; id "e4 983 d4 771 Nf3 399 c4 137";
Maybe the numbers are written in another way.
It is also good (but not mandatory)if rare positions were omitted.
Do you know a tool which can do this?