Class UserDictionary
java.lang.Object
org.apache.lucene.analysis.ko.dict.UserDictionary
- All Implemented Interfaces:
Dictionary<org.apache.lucene.analysis.ko.dict.UserMorphData>
public final class UserDictionary
extends Object
implements Dictionary<org.apache.lucene.analysis.ko.dict.UserMorphData>
Class for building a User Dictionary. This class allows for adding custom nouns (세종) or compounds
(세종시 세종 시).
-
Method Summary
Modifier and TypeMethodDescriptiongetFST()org.apache.lucene.analysis.ko.dict.UserMorphDatalookup(char[] chars, int off, int len) Lookup words in textstatic UserDictionaryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.analysis.morph.Dictionary
getLeftId, getRightId, getWordCost
-
Method Details
-
open
- Throws:
IOException
-
getFST
-
getMorphAttributes
public org.apache.lucene.analysis.ko.dict.UserMorphData getMorphAttributes()- Specified by:
getMorphAttributesin interfaceDictionary<org.apache.lucene.analysis.ko.dict.UserMorphData>
-
lookup
Lookup words in text- Parameters:
chars- textoff- offset into textlen- length of text- Returns:
- array of wordId
- Throws:
IOException
-