The makeprior application allows you to add document prior values into an existing Indri index.
The command to run makeprior is:
` $ makeprior <parameter_file>`
Where the parameter file is a well-formed XML file (wrapped in <parameters> </parameters>
tags) and contains the following fields:
- index: path to an Indri Repository.
- name: the name for the prior (i.e. what the prior will be referred to as in Indri queries).
- input: path to the input file for this prior. The input file should contain a list of entries containing first an external document id and second a log probability value. There should be one entry per line of the file.
- memory: an integer value specifying the number of bytes to use for the table building process. The value can include a scaling factor by adding a suffix. Valid values are (case insensitive) K=1000, M=1000000, G=1000000000. So 100M would be equivalent to 100000000. The value should contain only decimal digits and the optional suffix.