Algorithm-CRF
view release on metacpan or search on metacpan
//
// CRF++ -- Yet Another CRF toolkit
//
// $Id: encoder.h 1588 2007-02-12 09:03:39Z taku $;
//
// Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org>
//
#ifndef _CRFPP_LEANER_H
#define _CRFPP_LEANER_H
#include "common.h"
namespace CRFPP {
class Encoder {
private:
whatlog what_;
public:
enum { CRF, MIRA };
bool learn(const char *, const char *, const char *, bool, size_t, size_t,
double, double, unsigned short, unsigned short, int);
bool convert(const char *, const char*);
const char* what() { return what_.str(); }
};
}
#endif
( run in 0.747 second using v1.01-cache-2.11-cpan-39bf76dae61 )