Beispiel #1
0
 /*
  * Reads a stemdictionary file , that overrules the stemming algorithm
  * This is a textfile that contains per line
  * <tt>word<b>\t</b>stem</tt>, i.e: two tab seperated words
  */
 public void SetStemDictionary(FileInfo stemdictFile)
 {
     try
     {
         stemdict            = WordlistLoader.GetStemDict(stemdictFile);
         PreviousTokenStream = null; // force a new stemmer to be created
     }
     catch (IOException e)
     {
         // TODO: throw IOException
         throw new Exception(string.Empty, e);
     }
 }
 /// <summary>
 /// Reads a stemdictionary file , that overrules the stemming algorithm
 /// This is a textfile that contains per line
 /// word\tstem
 /// i.e: tabseperated
 /// </summary>
 /// <param name="stemdict"></param>
 public void SetStemDictionary(FileInfo stemdict)
 {
     _stemdict = WordlistLoader.GetStemDict(stemdict);
 }