diff options
author | 2011-10-03 04:24:40 -0700 | |
---|---|---|
committer | 2011-10-03 04:24:40 -0700 | |
commit | c812d0b816c6e3ac4a2df23b5831b17acdc7c414 (patch) | |
tree | 23a38642b4ab06cda2d1b2c25aed9d513bdcd8ae /native/src/correction.h | |
parent | 45f45a4fdb16d0fa44b4a34b880e5fabb41c1492 (diff) | |
parent | eb050fc2dc97a7e6ddcaf254c110dc16279dfd0d (diff) | |
download | latinime-c812d0b816c6e3ac4a2df23b5831b17acdc7c414.tar.gz latinime-c812d0b816c6e3ac4a2df23b5831b17acdc7c414.tar.xz latinime-c812d0b816c6e3ac4a2df23b5831b17acdc7c414.zip |
Merge "Demote words with a capitalized char"
Diffstat (limited to 'native/src/correction.h')
-rw-r--r-- | native/src/correction.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/native/src/correction.h b/native/src/correction.h index 84e075266..a630646c1 100644 --- a/native/src/correction.h +++ b/native/src/correction.h @@ -73,7 +73,8 @@ public: bool needsToPrune() const; - int getFreqForSplitTwoWords(const int firstFreq, const int secondFreq); + int getFreqForSplitTwoWords( + const int firstFreq, const int secondFreq, const unsigned short *word); int getFinalFreq(const int freq, unsigned short **word, int* wordLength); CorrectionType processCharAndCalcState(const int32_t c, const bool isTerminal); @@ -151,7 +152,7 @@ private: static int calculateFinalFreq(const int inputIndex, const int depth, const int freq, int *editDistanceTable, const Correction* correction); static int calcFreqForSplitTwoWords(const int firstFreq, const int secondFreq, - const Correction* correction); + const Correction* correction, const unsigned short *word); }; }; } // namespace latinime |