Changeset 12913
- Timestamp:
- 2006-09-28T16:54:36+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/mgpp/text/Terms.cpp
r12887 r12913 211 211 equivWords.erase (equivWords.begin(), equivWords.end()); 212 212 213 // if the stem method specified is not a valid one (i.e. there was no appropriate stem index, then we set it to 0) 214 // unless we have partial matching, in which case we are not doing stem indexes anyway. 215 if (!(stemMethod & STEM_PARTIAL_MATCH) && indexData.stemFile[stemMethod-1] == NULL) { 216 cerr << "Stem index for method "<<stemMethod<< " was not built, so not doing stemming\n"; 217 stemMethod = 0; 218 } 213 219 /* [JFG - Mar 06: Accent folding patch] */ 214 220 /* use flag PARTIAL_MATCH */ … … 230 236 } else { 231 237 // partial matching, 232 PartialMatchSearchWordBlockDictEl (indexData.dictFile, indexData.biWords, indexData.bdh.entries_per_wblk, indexData.bdh.word_dict_size, numLevels, term, wordDictEl, equivWords, 233 (stemMethod & STEM_CaseFolding)? true : false); 234 // TODO: Accent Folding is not handled here!! 238 PartialMatchSearchWordBlockDictEl (indexData.dictFile, indexData.biWords, indexData.bdh.entries_per_wblk, indexData.bdh.word_dict_size, numLevels, term, wordDictEl, equivWords, (stemMethod & STEM_CaseFolding)? true : false); 239 // TODO: Accent Folding is not handled here!! 235 240 return; 236 241 } … … 238 243 239 244 // need to stem this word and find it in the blocked stem index 240 unsigned char 245 unsigned char mgWord[MAXSTEMLEN + 1]; 241 246 UCArray stemTerm; 242 247 unsigned long stemmerNum = 0; … … 247 252 //TODO: throw an error here 248 253 } 254 249 255 stemmerNum = indexData.sih[stemMethod-1].stemmer_num; 250 256
Note:
See TracChangeset
for help on using the changeset viewer.