createLogWordPriorArr
public static HierarchyVersion createLogWordPriorArr(java.io.Reader r,
float[] arr,
HierarchyVersion version)
throws java.io.IOException,
TrainingDataException
Reads a file and saves the log word priors in an array.
Returns the version information for validation purpose.
Input file format: integer follows by a tab and float each line.
The first value indicates the index of a word, the second value
indicates the log value of word prior probability.
- Throws:
java.io.IOException
TrainingDataException