org.apache.lucene.analysis.ja.dict
Class UnknownDictionary
java.lang.Object
org.apache.lucene.analysis.ja.dict.BinaryDictionary
org.apache.lucene.analysis.ja.dict.UnknownDictionary
- All Implemented Interfaces:
- Dictionary
public final class UnknownDictionary
- extends BinaryDictionary
Dictionary for unknown-word handling.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lookup
public int lookup(char[] text,
int offset,
int len)
getCharacterDefinition
public CharacterDefinition getCharacterDefinition()
getReading
public String getReading(int wordId,
char[] surface,
int off,
int len)
- Description copied from interface:
Dictionary
- Get reading of tokens
- Specified by:
getReading
in interface Dictionary
- Overrides:
getReading
in class BinaryDictionary
- Parameters:
wordId
- word ID of token
- Returns:
- Reading of the token
getInflectionType
public String getInflectionType(int wordId)
- Description copied from interface:
Dictionary
- Get inflection type of tokens
- Specified by:
getInflectionType
in interface Dictionary
- Overrides:
getInflectionType
in class BinaryDictionary
- Parameters:
wordId
- word ID of token
- Returns:
- inflection type, or null
getInflectionForm
public String getInflectionForm(int wordId)
- Description copied from interface:
Dictionary
- Get inflection form of tokens
- Specified by:
getInflectionForm
in interface Dictionary
- Overrides:
getInflectionForm
in class BinaryDictionary
- Parameters:
wordId
- word ID of token
- Returns:
- inflection form, or null
getInstance
public static UnknownDictionary getInstance()