Package org.predict4all.nlp.language
Class AbstractLanguageModel
- java.lang.Object
-
- org.predict4all.nlp.language.AbstractLanguageModel
-
- All Implemented Interfaces:
LanguageModel
- Direct Known Subclasses:
FrenchLanguageModel
public abstract class AbstractLanguageModel extends Object implements LanguageModel
-
-
Constructor Summary
Constructors Constructor Description AbstractLanguageModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenMatcher[]
getTokenMatchersForNGram()
TokenMatcher[]
getTokenMatchersForSemanticAnalysis()
Set<String>
getValidOneCharWords()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.predict4all.nlp.language.LanguageModel
getAverageVocabularySize, getAverageWordLength, getBaseWordDictionary, getId, getStopWordDictionary
-
-
-
-
Method Detail
-
getTokenMatchersForSemanticAnalysis
public TokenMatcher[] getTokenMatchersForSemanticAnalysis()
- Specified by:
getTokenMatchersForSemanticAnalysis
in interfaceLanguageModel
-
getTokenMatchersForNGram
public TokenMatcher[] getTokenMatchersForNGram()
- Specified by:
getTokenMatchersForNGram
in interfaceLanguageModel
-
getValidOneCharWords
public Set<String> getValidOneCharWords()
- Specified by:
getValidOneCharWords
in interfaceLanguageModel
-
-