Package morfologik.speller

Examples of morfologik.speller.Speller


  public MorfologikSpeller(String filename, Locale conversionLocale, int maxEditDistance) throws IOException {
    if (maxEditDistance <= 0) {
      throw new RuntimeException("maxEditDistance must be > 0: " + maxEditDistance);
    }
    final URL url = JLanguageTool.getDataBroker().getFromResourceDirAsUrl(filename);
    speller = new Speller(Dictionary.read(url), maxEditDistance);
    this.conversionLocale = conversionLocale != null ? conversionLocale : Locale.getDefault();
  }
View Full Code Here


    if (maxEditDistance <= 0) {
      throw new RuntimeException("maxEditDistance must be > 0: " + maxEditDistance);
    }
    final URL url = JLanguageTool.getDataBroker().getFromResourceDirAsUrl(filename);
    dictionary = Dictionary.read(url);
    speller = new Speller(dictionary, maxEditDistance);
  }
View Full Code Here

TOP

Related Classes of morfologik.speller.Speller

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.