com.code972.hebmorph.DictionaryLoader Maven / Gradle / Ivy
/***************************************************************************
* Copyright (C) 2010-2015 by *
* Itamar Syn-Hershko *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Affero General Public License *
* version 3, as published by the Free Software Foundation. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Affero General Public License for more details. *
* *
* You should have received a copy of the GNU Affero General Public *
* License along with this program; if not, see *
* . *
**************************************************************************/
package com.code972.hebmorph;
import com.code972.hebmorph.datastructures.DictHebMorph;
import java.io.IOException;
import java.nio.charset.Charset;
public interface DictionaryLoader {
int MaxWordLength = Byte.MAX_VALUE;
Charset ENCODING_USED = Charset.forName("UTF-8");
String dictionaryLoaderName();
String[] dictionaryPossiblePaths();
DictHebMorph loadDictionaryFromPath(final String path) throws IOException;
DictHebMorph loadDictionaryFromDefaultPath() throws IOException;
}