A library to compose polyglot opening books from PGN file containing one or multiple games. Supports bz2 compressed PGNs
Features
Multi file support - set a list of files to parse into a single book
Supports large files. Polyglot weights are limited by uint16 (65535). This means if a move is encountered that many times (reasonable for 1. e4 ..., 1. d4 ...) the entries with excessive weights are normalized.
Normalization can cause low weight moves to be dropped entirely
Supports both annotated and raw PGN. Event tag is required and must be the first tag in the tag list as it currently works as a separator for games.
Build
Run make build to compile polyglot-composer
Usage
-o flag is optional output file name. Defaults to poly_out.bin
-pgn single or comma delimited files