KkcDecoder

KkcDecoder

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── KkcDecoder
        ╰── KkcBigramDecoder

Description

Functions

kkc_decoder_decode ()

KkcSegment **
kkc_decoder_decode (KkcDecoder *self,
                    const gchar *input,
                    gint nbest,
                    gint *constraint,
                    int constraint_length1,
                    int *result_length1);

Parameters

self

the KkcDecoder instance

 

constraint_length1

length of the constraint array

 

input

 

 

nbest

 

 

constraint

 

 

Returns

.

[array length=result_length1]


kkc_decoder_decode_with_costs ()

KkcSegment **
kkc_decoder_decode_with_costs (KkcDecoder *self,
                               const gchar *input,
                               gint nbest,
                               gint *constraint,
                               int constraint_length1,
                               gdouble max_distance,
                               gdouble min_path_cost,
                               int *result_length1);

Parameters

self

the KkcDecoder instance

 

constraint_length1

length of the constraint array

 

input

 

 

nbest

 

 

constraint

 

 

max_distance

 

 

min_path_cost

 

 

Returns

.

[array length=result_length1]


kkc_decoder_create ()

KkcDecoder *
kkc_decoder_create (KkcLanguageModel *model);

Parameters

model

 

 

Types and Values

KKC_TYPE_DECODER

#define KKC_TYPE_DECODER (kkc_decoder_get_type ())

The type for KkcDecoder.


struct KkcDecoder

struct KkcDecoder;

struct KkcDecoderClass

struct KkcDecoderClass {
	GObjectClass parent_class;
	KkcSegment** (*decode) (KkcDecoder* self, const gchar* input, gint nbest, gint* constraint, int constraint_length1, int* result_length1);
	KkcSegment** (*decode_with_costs) (KkcDecoder* self, const gchar* input, gint nbest, gint* constraint, int constraint_length1, gdouble max_distance, gdouble min_path_cost, int* result_length1);
};

The class structure for KKC_TYPE_DECODER. All the fields in this structure are private and should never be accessed directly.

Members

decode ()

virtual method called by kkc_decoder_decode()

 

decode_with_costs ()

virtual method called by kkc_decoder_decode_with_costs()