Class CjkBreakEngine

    • Constructor Detail

      • CjkBreakEngine

        public CjkBreakEngine​(boolean korean)
                       throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • initializeJapanesePhraseParamater

        private void initializeJapanesePhraseParamater()
      • loadJapaneseExtensions

        private void loadJapaneseExtensions()
      • loadHiragana

        private void loadHiragana()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getKatakanaCost

        private static int getKatakanaCost​(int wordlength)
      • isKatakana

        private static boolean isKatakana​(int value)
      • divideUpDictionaryRange

        public int divideUpDictionaryRange​(java.text.CharacterIterator inText,
                                           int startPos,
                                           int endPos,
                                           DictionaryBreakEngine.DequeI foundBreaks,
                                           boolean isPhraseBreaking)
        Description copied from class: DictionaryBreakEngine

        Divide up a range of known dictionary characters handled by this break engine.

        Specified by:
        divideUpDictionaryRange in class DictionaryBreakEngine
        Parameters:
        inText - A UText representing the text
        startPos - The start of the range of dictionary characters
        endPos - The end of the range of dictionary characters
        foundBreaks - Output of break positions. Positions are pushed. Pre-existing contents of the output stack are unaltered.
        Returns:
        The number of breaks found
      • getPatternFromText

        private java.lang.String getPatternFromText​(java.text.CharacterIterator text,
                                                    java.lang.StringBuffer sb,
                                                    int start,
                                                    int length)