Mercurial > hg > mpdl-group
diff software/eXist/mpdl-modules/src/de/mpg/mpiwg/berlin/mpdl/lt/analyzer/MpdlStemmer.java @ 10:59ff47d1e237
TEI Unterst?tzung, Fehlerbehebungen, externe Objekte
author | Josef Willenborg <jwillenborg@mpiwg-berlin.mpg.de> |
---|---|
date | Fri, 11 Mar 2011 13:33:26 +0100 |
parents | 408254cf2f1d |
children |
line wrap: on
line diff
--- a/software/eXist/mpdl-modules/src/de/mpg/mpiwg/berlin/mpdl/lt/analyzer/MpdlStemmer.java Tue Feb 22 16:03:45 2011 +0100 +++ b/software/eXist/mpdl-modules/src/de/mpg/mpiwg/berlin/mpdl/lt/analyzer/MpdlStemmer.java Fri Mar 11 13:33:26 2011 +0100 @@ -48,8 +48,10 @@ } } } - // if not found in MorphologyCache use Snowball + // if not found then use the term itself as the stem if (stem == null) { + stem = term; + /* Snowball stemming: if not found in MorphologyCache use Snowball stem = stemBySnowball(term, language); // if term is not equal to the base form and also the stem is not too short (> 2 characters) then add this Snowball form to the dynamic morphology cache if ((! stem.equals(term)) && stem.length() > 2) { @@ -64,6 +66,7 @@ Logger.getLogger(MpdlStemmer.class).warn("MorphologyCache: an exception was caught while indexing a document: " + e.getMessage(), e); } } + */ } return stem; }