Class UnknownDictionary
java.lang.Object
org.apache.lucene.analysis.morph.BinaryDictionary<org.apache.lucene.analysis.ja.dict.UnknownMorphData>
org.apache.lucene.analysis.ja.dict.UnknownDictionary
- All Implemented Interfaces:
- Dictionary<org.apache.lucene.analysis.ja.dict.UnknownMorphData>
public final class UnknownDictionary
extends BinaryDictionary<org.apache.lucene.analysis.ja.dict.UnknownMorphData>
Dictionary for unknown-word handling.
- 
Field SummaryFields inherited from class org.apache.lucene.analysis.morph.BinaryDictionarybuffer, DICT_FILENAME_SUFFIX, POSDICT_FILENAME_SUFFIX, TARGETMAP_FILENAME_SUFFIX
- 
Constructor SummaryConstructorsConstructorDescriptionUnknownDictionary(URL targetMapUrl, URL posDictUrl, URL dictUrl) Create aUnknownDictionaryfrom an external resource URL (e.g.UnknownDictionary(Path targetMapFile, Path posDictFile, Path dictFile) Create aUnknownDictionaryfrom an external resource path.
- 
Method SummaryModifier and TypeMethodDescriptionstatic UnknownDictionaryorg.apache.lucene.analysis.ja.dict.UnknownMorphDataintlookup(char[] text, int offset, int len) Methods inherited from class org.apache.lucene.analysis.morph.BinaryDictionarylookupWordIdsMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.analysis.morph.DictionarygetLeftId, getRightId, getWordCost
- 
Constructor Details- 
UnknownDictionaryCreate aUnknownDictionaryfrom an external resource path.- Parameters:
- targetMapFile- where to load target map resource
- posDictFile- where to load POS dictionary resource
- dictFile- where to load dictionary entries resource
- Throws:
- IOException- if resource was not found or broken
 
- 
UnknownDictionaryCreate aUnknownDictionaryfrom an external resource URL (e.g. from Classpath withClassLoader.getResource(String)).- Parameters:
- targetMapUrl- where to load target map resource
- posDictUrl- where to load POS dictionary resource
- dictUrl- where to load dictionary entries resource
- Throws:
- IOException- if resource was not found or broken
 
 
- 
- 
Method Details- 
getMorphAttributespublic org.apache.lucene.analysis.ja.dict.UnknownMorphData getMorphAttributes()
- 
lookuppublic int lookup(char[] text, int offset, int len) 
- 
getCharacterDefinition
- 
getInstance
 
-