Ignore:
Timestamp:
2012-08-30T12:50:09+12:00 (12 years ago)
Author:
kjdon
Message:

changed a comment, hope its more clear than before :-)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/Terms.cpp

    r26137 r26138  
    211211  equivWords.erase (equivWords.begin(), equivWords.end());
    212212
    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 
    216213  if (!(stemMethod & STEM_PARTIAL_MATCH)) {
    217 
     214    // If we are not doing a partial match then make sure the stemMethod we have
     215    // specified is valid, ie the stem index has been built. If invalid, set it to 0 ie no stemming/casefolding/accentfolding
     216    // If we are partial matching then we are not using the stem indexes so
     217    // this doesn't matter.
    218218    if(stemMethod > STEM_MAX) {
    219219      cerr << "Stem method "<<stemMethod<< " is greater than maximum allowed ("<<STEM_MAX<<"). Not doing stemming\n";
Note: See TracChangeset for help on using the changeset viewer.