Class ToStringUtil
- java.lang.Object
-
- org.apache.lucene.analysis.ja.util.ToStringUtil
-
public class ToStringUtil extends java.lang.ObjectUtility class for english translations of morphological data, used only for debugging.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.HashMap<java.lang.String,java.lang.String>inflFormTranslationsprivate static java.util.HashMap<java.lang.String,java.lang.String>inflTypeTranslationsprivate static java.util.HashMap<java.lang.String,java.lang.String>posTranslations
-
Constructor Summary
Constructors Constructor Description ToStringUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetInflectedFormTranslation(java.lang.String s)Get the english form of inflected formstatic java.lang.StringgetInflectionTypeTranslation(java.lang.String s)Get the english form of inflection typestatic java.lang.StringgetPOSTranslation(java.lang.String s)Get the english form of a POS tagstatic voidgetRomanization(java.lang.Appendable builder, java.lang.CharSequence s)Romanize katakana with modified hepburnstatic java.lang.StringgetRomanization(java.lang.String s)Romanize katakana with modified hepburn
-
-
-
Field Detail
-
posTranslations
private static final java.util.HashMap<java.lang.String,java.lang.String> posTranslations
-
inflTypeTranslations
private static final java.util.HashMap<java.lang.String,java.lang.String> inflTypeTranslations
-
inflFormTranslations
private static final java.util.HashMap<java.lang.String,java.lang.String> inflFormTranslations
-
-
Method Detail
-
getPOSTranslation
public static java.lang.String getPOSTranslation(java.lang.String s)
Get the english form of a POS tag
-
getInflectionTypeTranslation
public static java.lang.String getInflectionTypeTranslation(java.lang.String s)
Get the english form of inflection type
-
getInflectedFormTranslation
public static java.lang.String getInflectedFormTranslation(java.lang.String s)
Get the english form of inflected form
-
getRomanization
public static java.lang.String getRomanization(java.lang.String s)
Romanize katakana with modified hepburn
-
getRomanization
public static void getRomanization(java.lang.Appendable builder, java.lang.CharSequence s) throws java.io.IOExceptionRomanize katakana with modified hepburn- Throws:
java.io.IOException
-
-