~vcs-imports/tesseract-ocr/trunk

« back to all changes in this revision

Viewing changes to dict/dict.cpp

  • Committer: theraysmith at gmail
  • Date: 2013-11-08 20:30:56 UTC
  • Revision ID: svn-v4:d0cd1f9f-072b-0410-8dd7-cf729c803f20:trunk:904
Refactorerd control functions to enable parallel blob classification

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
                  "Make AcceptableChoice() always return false. Useful"
120
120
                  " when there is a need to explore all segmentations",
121
121
                  getImage()->getCCUtil()->params()),
 
122
      BOOL_MEMBER(save_raw_choices, false,
 
123
                  "Deprecated- backward compatablity only",
 
124
                  getImage()->getCCUtil()->params()),
122
125
      INT_MEMBER(tessedit_truncate_wordchoice_log, 10,
123
126
                 "Max words to keep in list",
124
127
                 getImage()->getCCUtil()->params()),
689
692
int Dict::valid_word(const WERD_CHOICE &word, bool numbers_ok) const {
690
693
  const WERD_CHOICE *word_ptr = &word;
691
694
  WERD_CHOICE temp_word(word.unicharset());
692
 
  if (hyphenated()) {
 
695
  if (hyphenated() && hyphen_word_->unicharset() == word.unicharset()) {
693
696
    copy_hyphen_info(&temp_word);
694
697
    temp_word += word;
695
698
    word_ptr = &temp_word;