parent
3b161b2526
commit
e12e9b5b69
|
@ -27,7 +27,6 @@ namespace latinime {
|
||||||
class ProximityInfo;
|
class ProximityInfo;
|
||||||
|
|
||||||
class Correction {
|
class Correction {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
typedef enum {
|
typedef enum {
|
||||||
TRAVERSE_ALL_ON_TERMINAL,
|
TRAVERSE_ALL_ON_TERMINAL,
|
||||||
|
@ -95,6 +94,7 @@ public:
|
||||||
inline int getTreeParentIndex(const int index) const {
|
inline int getTreeParentIndex(const int index) const {
|
||||||
return mCorrectionStates[index].mParentIndex;
|
return mCorrectionStates[index].mParentIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
inline void incrementInputIndex();
|
inline void incrementInputIndex();
|
||||||
inline void incrementOutputIndex();
|
inline void incrementOutputIndex();
|
||||||
|
|
|
@ -28,9 +28,7 @@
|
||||||
namespace latinime {
|
namespace latinime {
|
||||||
|
|
||||||
class UnigramDictionary {
|
class UnigramDictionary {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Mask and flags for children address type selection.
|
// Mask and flags for children address type selection.
|
||||||
static const int MASK_GROUP_ADDRESS_TYPE = 0xC0;
|
static const int MASK_GROUP_ADDRESS_TYPE = 0xC0;
|
||||||
static const int FLAG_GROUP_ADDRESS_TYPE_NOADDRESS = 0x00;
|
static const int FLAG_GROUP_ADDRESS_TYPE_NOADDRESS = 0x00;
|
||||||
|
@ -84,7 +82,6 @@ public:
|
||||||
virtual ~UnigramDictionary();
|
virtual ~UnigramDictionary();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void getWordSuggestions(ProximityInfo *proximityInfo, const int *xcoordinates,
|
void getWordSuggestions(ProximityInfo *proximityInfo, const int *xcoordinates,
|
||||||
const int *ycoordinates, const int *codes, const int inputLength,
|
const int *ycoordinates, const int *codes, const int inputLength,
|
||||||
const int flags, Correction *correction, WordsPriorityQueuePool *queuePool);
|
const int flags, Correction *correction, WordsPriorityQueuePool *queuePool);
|
||||||
|
|
|
@ -126,6 +126,7 @@ public:
|
||||||
mSuggestions.pop();
|
mSuggestions.pop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
struct wordComparator {
|
struct wordComparator {
|
||||||
bool operator ()(SuggestedWord * left, SuggestedWord * right) {
|
bool operator ()(SuggestedWord * left, SuggestedWord * right) {
|
||||||
|
|
|
@ -43,6 +43,7 @@ public:
|
||||||
WordsPriorityQueue* getSubQueue2() {
|
WordsPriorityQueue* getSubQueue2() {
|
||||||
return mSubQueue2;
|
return mSubQueue2;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
WordsPriorityQueue *mMasterQueue;
|
WordsPriorityQueue *mMasterQueue;
|
||||||
WordsPriorityQueue *mSubQueue1;
|
WordsPriorityQueue *mSubQueue1;
|
||||||
|
|
Loading…
Reference in New Issue