I think i see the problem. Could you try
extract_fuseki sgflist 19 50 1000 10 1 0 2 5 1
extract_fuseki sgflist 19 50 1000 0 1 0 2 5 1
and let us know whether either of these works? It may not do exactly
do exactly what you want, but conformation that it works to a first
approximation tells us where the problem is.
I think there's a bug (a difference between the command line options
reported and tested. Compare:
handicap: 0 - no handicap, 1 - any game, 2-9 - two to nine handicap stones
10 any handicap game
and
/* only specific handicap games */
if (handicap_value != 10 && handicap != handicap_value) {
if (WARN)
fprintf(stderr,
"Sgf file %s has wrong number of handicap stones %d\n",
sgfname, handicap);
return 0;
}
I think the code should read:
/* only specific handicap games */
if (handicap_value != 10 && handicap_value != 1 && handicap !=
handicap_value) {
if (WARN)
fprintf(stderr,
"Sgf file %s has wrong number of handicap stones %d\n",
sgfname, handicap);
return 0;
}
But then I'm new to this code.
cheers
stuart
On 21/12/2007, Ben Lambrechts <address@hidden> wrote:
Hi,
I worked on the fuseki awhile ago and spent some quality time with
extract_fuseki. There's a fair bit of documentation in source
comments inside patterns/extract_fuseki.c, which should be enough to
get you started. Further questions, please ask.
Hi,
I have a large game database.
How do I use extract_fuseki for generating patterns for gnugo?
I was able to build extract_fuseki is some way, but now it is not doing
what it is suposed to do.
I run it with the following command:
extract_fuseki sgflist 19 50 1000 1 1 0 2 5 1
sgflist :: in sgflist there is a list of the sgf-files, one per line
19 :: I want to extract the 19x19 games
50 :: Looking 50 moves deep in every file
1000 :: To generate 1000 patterns
1 :: With any handicap
1 :: With lowest stregth 1k (I tried 1k instead of 1 too)
0 :: Full board patterns
2 :: minimum occurence before pattern
5 :: minimum 5% of all answers in a given position
1 :: minimum unique players
But it generates just output (I paste some after the mail)
It is saying a lot about handicap, but I want to include them all.
What am I doing wrong?
Ben
....
Sgf file 2005-05-13-32.sgf has wrong number of handicap stones 7
Sgf file 2006-07-13-15.sgf has wrong number of handicap stones 3
Sgf file 2007-11-30-6.sgf is not a handicap game
Sgf file 2004-02-17-3.sgf is not a handicap game
Sgf file 2005-05-13-33.sgf has wrong number of handicap stones 2
Sgf file 2006-07-13-16.sgf has wrong number of handicap stones 3
Sgf file 2007-11-30-7.sgf has wrong number of handicap stones 3
Sgf file 2004-02-17-30.sgf is not a handicap game
Sgf file 2005-05-13-34.sgf has wrong number of handicap stones 4
Sgf file 2006-07-13-17.sgf is not a handicap game
Sgf file 2007-11-30-8.sgf has wrong number of handicap stones 2
Sorting number 60500, 2004-02-17-31.sgf
Sgf file 2004-02-17-31.sgf has wrong number of handicap stones 2
Sgf file 2005-05-13-35.sgf has wrong number of handicap stones 2
Sgf file 2006-07-13-18.sgf is not a handicap game
Sgf file 2007-11-30-9.sgf has wrong number of handicap stones 3
Sgf file 2004-02-17-32.sgf is not a handicap game
Sgf file 2005-05-13-36.sgf is not a handicap game
Sgf file 2006-07-13-19.sgf is not a handicap game
Sgf file 2004-02-17-33.sgf has wrong number of handicap stones 3
Sgf file 2005-05-13-37.sgf has wrong number of handicap stones 4
Warning: Couldn't open sgf file 2006-07-13-2.sg number 60509.
Starting game writes