Class ToStringUtil


  • public class ToStringUtil
    extends java.lang.Object
    Utility 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> inflFormTranslations  
      private static java.util.HashMap<java.lang.String,​java.lang.String> inflTypeTranslations  
      private 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.String getInflectedFormTranslation​(java.lang.String s)
      Get the english form of inflected form
      static java.lang.String getInflectionTypeTranslation​(java.lang.String s)
      Get the english form of inflection type
      static java.lang.String getPOSTranslation​(java.lang.String s)
      Get the english form of a POS tag
      static void getRomanization​(java.lang.Appendable builder, java.lang.CharSequence s)
      Romanize katakana with modified hepburn
      static java.lang.String getRomanization​(java.lang.String s)
      Romanize katakana with modified hepburn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • ToStringUtil

        public ToStringUtil()
    • 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.IOException
        Romanize katakana with modified hepburn
        Throws:
        java.io.IOException