createProbIndexArr
public static HierarchyVersion createProbIndexArr(java.io.Reader r,
int[] arr,
HierarchyVersion version)
throws java.io.IOException,
TrainingDataException
Reads a file and saves the start index of conditional probability of the genera containing the word to an array.
Returns the version information for validation purpose.
The input file format: integer follows by a tab and integer each line
The first number indicates the index of a word, the second number
indicates the start index of conditional probability of the genera containing that word
in the list genus_wordConditionalProbList.
- Throws:
java.io.IOException
TrainingDataException