* Constructs algorithm object. It is similar to Gale and Church algorithm
* but based on Forward Backward method instead of Viterbi method.
*/
@Before
public void setUp() {
Counter counter = new CharCounter();
Calculator calculator = new NormalDistributionCalculator(counter);
MatrixFactory matrixFactory = new FullMatrixFactory();
algorithm = new ForwardBackwardAlgorithm(calculator,
CategoryDefaults.BEST_CATEGORY_MAP, matrixFactory);