示例#1
0
boost::tuple< typename CompleteMarkovModel::ptr, zero_order_frequencies >
_create_markov_model( data_t & _data, double pseudo_count ) {
	typename CompleteMarkovModel::ptr result( new CompleteMarkovModel() );
	return boost::make_tuple( result, build_model_from_text( *result, _data.get_text(), pseudo_count ) );
}
示例#2
0
likelihoods_vec_vec_ptr
_calculate_likelihoods( CompleteMarkovModel & model, data_t & _data ) {
	likelihoods_vec_vec_ptr result( new likelihoods_vec_vec_t );
	calculate_likelihoods( model, _data.get_text(), *result );
	return result;
}