KkcSentenceDictionary

KkcSentenceDictionary — Base interface of sentence dictionaries.

Functions

Types and Values

Object Hierarchy

    GInterface
    ╰── KkcSentenceDictionary

Prerequisites

KkcSentenceDictionary requires KkcDictionary and GObject.

Known Implementations

KkcSentenceDictionary is implemented by KkcUserDictionary and KkcUserSentenceDictionary.

Description

Functions

kkc_sentence_dictionary_lookup_constraint ()

gboolean
kkc_sentence_dictionary_lookup_constraint
                               (KkcSentenceDictionary *self,
                                const gchar *input,
                                gint **constraint,
                                int *constraint_length1);

Lookup constraint.

Parameters

self

the KkcSentenceDictionary instance

 

input

 .

input string to lookup

.

[in]

constraint

 .

output location of constraint

.

[out][array length=constraint_length1]

constraint_length1

length of the constraint array

 

Returns

`true` if found, `false` otherwise


kkc_sentence_dictionary_lookup_phrase ()

gboolean
kkc_sentence_dictionary_lookup_phrase (KkcSentenceDictionary *self,
                                       gchar **input,
                                       int input_length1,
                                       gchar ***phrase,
                                       int *phrase_length1);

Lookup phrase.

Parameters

self

the KkcSentenceDictionary instance

 

input

 .

input sequence to lookup

.

[in][array length=input_length1]

input_length1

length of the input array

 

phrase

 .

output location of phrase

.

[out][array length=phrase_length1]

phrase_length1

length of the phrase array

 

Returns

`true` if found, `false` otherwise


kkc_sentence_dictionary_select_segments ()

gboolean
kkc_sentence_dictionary_select_segments
                               (KkcSentenceDictionary *self,
                                KkcSegment **input,
                                int input_length1);

Parameters

self

the KkcSentenceDictionary instance

 

input_length1

length of the input array

 

input

 

 

Types and Values

KkcSentenceDictionary

typedef struct _KkcSentenceDictionary KkcSentenceDictionary;

Base interface of sentence dictionaries.


struct KkcSentenceDictionaryIface

struct KkcSentenceDictionaryIface {
	GTypeInterface parent_iface;
	gboolean (*lookup_constraint) (KkcSentenceDictionary* self, const gchar* input, gint** constraint, int* constraint_length1);
	gboolean (*lookup_phrase) (KkcSentenceDictionary* self, gchar** input, int input_length1, gchar*** phrase, int* phrase_length1);
	gboolean (*select_segments) (KkcSentenceDictionary* self, KkcSegment** input, int input_length1);
};

Interface for creating KkcSentenceDictionary implementations.

Members

GTypeInterface parent_iface;

the parent interface structure

 

lookup_constraint ()

virtual method called by kkc_sentence_dictionary_lookup_constraint()

 

lookup_phrase ()

virtual method called by kkc_sentence_dictionary_lookup_phrase()

 

select_segments ()

virtual method called by kkc_sentence_dictionary_select_segments()