glinscott / leela-chess

**MOVED TO https://github.com/LeelaChessZero/leela-chess ** A chess adaption of GCP's Leela Zero
http://lczero.org
GNU General Public License v3.0
758 stars 298 forks source link

PGN comments may cause crashes in supervised training mode #131

Open Prcuvu opened 6 years ago

Prcuvu commented 6 years ago

Running on Windows 10 1709 x64. When parsing games with comments enclosed with braces, LCZero crashes. Preprocessing the PGN file with sed -i "s/ {.*}//g" games.pgn will circumvent the problem and output training data properly. It seems like a problem with LCZero’s PGN parser. Please investigate.

glinscott commented 6 years ago

The PGN parser is very minimal, using a tool like pgn-extract is recommended.