@@ -0,0 +1,1850 @@
+/* LanguageTool, a natural language style checker %0A * Copyright (C) 2007 Daniel Naber (http://www.danielnaber.de)%0A * %0A * This library is free software; you can redistribute it and/or%0A * modify it under the terms of the GNU Lesser General Public%0A * License as published by the Free Software Foundation; either%0A * version 2.1 of the License, or (at your option) any later version.%0A *%0A * This library is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU%0A * Lesser General Public License for more details.%0A *%0A * You should have received a copy of the GNU Lesser General Public%0A * License along with this library; if not, write to the Free Software%0A * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301%0A * USA%0A */%0A%0Apackage de.danielnaber.languagetool.tagging.disambiguation.ru;%0A%0Aimport java.io.IOException;%0A%0Aimport de.danielnaber.languagetool.AnalyzedSentence;%0Aimport de.danielnaber.languagetool.tagging.disambiguation.Disambiguator;%0Aimport de.danielnaber.languagetool.tagging.disambiguation.MultiWordChunker;%0Aimport de.danielnaber.languagetool.tagging.disambiguation.rules.ru.RussianRuleDisambiguator;%0A%0A/**%0A * Hybrid chunker-disambiguator for Russian.%0A * %0A * @author Yakov Reztsov%0A */%0A%0Apublic class RussianHybridDisambiguator implements Disambiguator %7B%0A%0A  private final Disambiguator chunker = new MultiWordChunker(%22/ru/multiwords.txt%22);%0A  private final Disambiguator disambiguator = new RussianRuleDisambiguator();%0A%0A  /**%0A   * Calls two disambiguator classes: (1) a chunker; (2) a rule-based%0A   * disambiguator.%0A   */%0A  @Override%0A  public final AnalyzedSentence disambiguate(AnalyzedSentence input)%0A      throws IOException %7B%0A    return disambiguator.disambiguate(chunker.disambiguate(input));%0A  %7D%0A%0A%7D%0A

Add hybrid disambiguator