| 1 | // | ||
| 2 | // CRF++ -- Yet Another CRF toolkit | ||
| 3 | // | ||
| 4 | // $Id: encoder.h 1588 2007-02-12 09:03:39Z taku $; | ||
| 5 | // | ||
| 6 | // Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org> | ||
| 7 | // | ||
| 8 | #ifndef _CRFPP_LEANER_H | ||
| 9 | #define _CRFPP_LEANER_H | ||
| 10 | |||
| 11 | #include "common.h" | ||
| 12 | |||
| 13 | namespace CRFPP { | ||
| 14 | class Encoder { | ||
| 15 | private: | ||
| 16 | whatlog what_; | ||
| 17 | public: | ||
| 18 | enum { CRF, MIRA }; | ||
| 19 | bool learn(const char *, const char *, const char *, bool, size_t, size_t, | ||
| 20 | double, double, unsigned short, unsigned short, int); | ||
| 21 | bool convert(const char *, const char*); | ||
| 22 | 0 | const char* what() { return what_.str(); } | |
| 23 | }; | ||
| 24 | } | ||
| 25 | #endif |