This application (EstimateDirPrior.cpp) uses the leave-one-out method to estimate an optimal setting for the Dirichlet prior smoothing parameter (i.e., the "prior sample size").
To run the application, follow the general steps of running a lemur application and set the following variables in the parameter file:
(1) index: the table-of-content (TOC) record file of the index (e.g., the .bsc file created by BuildBasicIndex)
(2) initValue: the initial value for the parameter in the Newton method.
It will print out the estimated parameter value to the standard output.