# CRFPP::Tagger Class Reference

`#include <crfpp.h>`

List of all members.

## Public Member Functions

virtual bool | open (int argc, char **argv)=0
virtual bool | open (const char *arg)=0
virtual bool | add (size_t size, const char **str)=0
virtual void | close ()=0
virtual const float * | weight_vector () const =0
virtual void | set_vlevel (unsigned int vlevel)=0
virtual unsigned int | vlevel () const =0
virtual void | set_cost_factor (float cost_factor)=0
virtual float | cost_factor () const =0
virtual void | set_nbest (size_t nbest)=0
virtual size_t | nbest () const =0
virtual bool | add (const char *str)=0
virtual size_t | size () const =0
virtual size_t | xsize () const =0
virtual size_t | dsize () const =0
virtual size_t | result (size_t i) const =0
virtual size_t | answer (size_t i) const =0
virtual size_t | y (size_t i) const =0
virtual const char * | y2 (size_t i) const =0
virtual const char * | yname (size_t i) const =0
virtual const char * | x (size_t i, size_t j) const =0
virtual const char ** | x (size_t) const =0
virtual size_t | ysize () const =0
virtual double | prob (size_t i, size_t j) const =0
virtual double | prob (size_t i) const =0
virtual double | prob () const =0
virtual void | set_penalty (size_t i, size_t j, double penalty)=0
virtual double | penalty (size_t i, size_t j) const =0
virtual double | alpha (size_t i, size_t j) const =0
virtual double | beta (size_t i, size_t j) const =0
virtual double | emission_cost (size_t i, size_t j) const =0
virtual double | next_transition_cost (size_t i, size_t j, size_t k) const =0
virtual double | prev_transition_cost (size_t i, size_t j, size_t k) const =0
virtual double | best_cost (size_t i, size_t j) const =0
virtual const int * | emission_vector (size_t i, size_t j) const =0
virtual const int * | next_transition_vector (size_t i, size_t j, size_t k) const =0
virtual const int * | prev_transition_vector (size_t i, size_t j, size_t k) const =0
virtual double | Z () const =0
virtual bool | parse ()=0
virtual bool | empty () const =0
virtual bool | clear ()=0
virtual bool | next ()=0
virtual const char * | parse (const char *str)=0
virtual const char * | toString ()=0
virtual const char * | toString (char *result, size_t size)=0
virtual const char * | parse (const char *str, size_t size)=0
virtual const char * | parse (const char *str, size_t size1, char *result, size_t size2)=0
virtual const char * | what ()=0
virtual | ~Tagger ()

## Constructor & Destructor Documentation

virtual CRFPP::Tagger::~Tagger | ( |  | ) | `[inline, virtual]`

## Member Function Documentation

virtual bool CRFPP::Tagger::add | ( | const char * | str | ) | `[pure virtual]`

virtual bool CRFPP::Tagger::add | ( | size_t | size,
|  | const char ** | str |
| ) |  |  | `[pure virtual]`

virtual double CRFPP::Tagger::alpha | ( | size_t | i,
|  | size_t | j |
| ) |  |  | const`[pure virtual]`

virtual size_t CRFPP::Tagger::answer | ( | size_t | i | ) | const`[pure virtual]`

virtual double CRFPP::Tagger::best_cost | ( | size_t | i,
|  | size_t | j |
| ) |  |  | const`[pure virtual]`

virtual double CRFPP::Tagger::beta | ( | size_t | i,
|  | size_t | j |
| ) |  |  | const`[pure virtual]`

virtual bool CRFPP::Tagger::clear | ( |  | ) | `[pure virtual]`

virtual void CRFPP::Tagger::close | ( |  | ) | `[pure virtual]`

virtual float CRFPP::Tagger::cost_factor | ( |  | ) | const`[pure virtual]`

virtual size_t CRFPP::Tagger::dsize | ( |  | ) | const`[pure virtual]`

virtual double CRFPP::Tagger::emission_cost | ( | size_t | i,
|  | size_t | j |
| ) |  |  | const`[pure virtual]`

virtual const int* CRFPP::Tagger::emission_vector | ( | size_t | i,
|  | size_t | j |
| ) |  |  | const`[pure virtual]`

virtual bool CRFPP::Tagger::empty | ( |  | ) | const`[pure virtual]`

virtual size_t CRFPP::Tagger::nbest | ( |  | ) | const`[pure virtual]`

virtual bool CRFPP::Tagger::next | ( |  | ) | `[pure virtual]`

virtual double CRFPP::Tagger::next_transition_cost | ( | size_t | i,
|  | size_t | j,
|  | size_t | k |
| ) |  |  | const`[pure virtual]`

virtual const int* CRFPP::Tagger::next_transition_vector | ( | size_t | i,
|  | size_t | j,
|  | size_t | k |
| ) |  |  | const`[pure virtual]`

virtual bool CRFPP::Tagger::open | ( | const char * | arg | ) | `[pure virtual]`

virtual bool CRFPP::Tagger::open | ( | int | argc,
|  | char ** | argv |
| ) |  |  | `[pure virtual]`

virtual const char* CRFPP::Tagger::parse | ( | const char * | str,
|  | size_t | size1,
|  | char * | result,
|  | size_t | size2 |
| ) |  |  | `[pure virtual]`

virtual const char* CRFPP::Tagger::parse | ( | const char * | str,
|  | size_t | size |
| ) |  |  | `[pure virtual]`

virtual const char* CRFPP::Tagger::parse | ( | const char * | str | ) | `[pure virtual]`

virtual bool CRFPP::Tagger::parse | ( |  | ) | `[pure virtual]`

virtual double CRFPP::Tagger::penalty | ( | size_t | i,
|  | size_t | j |
| ) |  |  | const`[pure virtual]`

virtual double CRFPP::Tagger::prev_transition_cost | ( | size_t | i,
|  | size_t | j,
|  | size_t | k |
| ) |  |  | const`[pure virtual]`

virtual const int* CRFPP::Tagger::prev_transition_vector | ( | size_t | i,
|  | size_t | j,
|  | size_t | k |
| ) |  |  | const`[pure virtual]`

virtual double CRFPP::Tagger::prob | ( |  | ) | const`[pure virtual]`

virtual double CRFPP::Tagger::prob | ( | size_t | i | ) | const`[pure virtual]`

virtual double CRFPP::Tagger::prob | ( | size_t | i,
|  | size_t | j |
| ) |  |  | const`[pure virtual]`

virtual size_t CRFPP::Tagger::result | ( | size_t | i | ) | const`[pure virtual]`

virtual void CRFPP::Tagger::set_cost_factor | ( | float | cost_factor | ) | `[pure virtual]`

virtual void CRFPP::Tagger::set_nbest | ( | size_t | nbest | ) | `[pure virtual]`

virtual void CRFPP::Tagger::set_penalty | ( | size_t | i,
|  | size_t | j,
|  | double | penalty |
| ) |  |  | `[pure virtual]`

virtual void CRFPP::Tagger::set_vlevel | ( | unsigned int | vlevel | ) | `[pure virtual]`

virtual size_t CRFPP::Tagger::size | ( |  | ) | const`[pure virtual]`

virtual const char* CRFPP::Tagger::toString | ( | char * | result,
|  | size_t | size |
| ) |  |  | `[pure virtual]`

virtual const char* CRFPP::Tagger::toString | ( |  | ) | `[pure virtual]`

virtual unsigned int CRFPP::Tagger::vlevel | ( |  | ) | const`[pure virtual]`

virtual const float* CRFPP::Tagger::weight_vector | ( |  | ) | const`[pure virtual]`

virtual const char* CRFPP::Tagger::what | ( |  | ) | `[pure virtual]`

virtual const char** CRFPP::Tagger::x | ( | size_t |  | ) | const`[pure virtual]`

virtual const char* CRFPP::Tagger::x | ( | size_t | i,
|  | size_t | j |
| ) |  |  | const`[pure virtual]`

virtual size_t CRFPP::Tagger::xsize | ( |  | ) | const`[pure virtual]`

virtual size_t CRFPP::Tagger::y | ( | size_t | i | ) | const`[pure virtual]`

virtual const char* CRFPP::Tagger::y2 | ( | size_t | i | ) | const`[pure virtual]`

virtual const char* CRFPP::Tagger::yname | ( | size_t | i | ) | const`[pure virtual]`

virtual size_t CRFPP::Tagger::ysize | ( |  | ) | const`[pure virtual]`

virtual double CRFPP::Tagger::Z | ( |  | ) | const`[pure virtual]`

The documentation for this class was generated from the following file:

- /home/taku/.proj/crfpp/crfpp.h