Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for normalize (0.04 sec)

  1. src/main/java/org/codelibs/fess/suggest/normalizer/Normalizer.java

     */
    package org.codelibs.fess.suggest.normalizer;
    
    /**
     * An interface for normalizing text.
     * Implementations of this interface should provide a method to normalize
     * a given text based on the specified field and optional language parameters.
     */
    public interface Normalizer {
        /**
         * Normalizes the given text.
         * @param text The text to normalize
         * @param field The field name
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/suggest/normalizer/AnalyzerNormalizer.java

                    chain.add(new LangAnalyzerNormalizer(lang));
                }
                normalizer = chain;
            }
            return normalizer.normalize(text, field);
        }
    
        /**
         * Language-specific analyzer normalizer.
         */
        protected class LangAnalyzerNormalizer implements Normalizer {
            /**
             * The language used for normalization.
             */
            protected final String lang;
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 4K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/EncodingHelperTest.java

            assertEquals("UTF-8", encodingHelper.normalize(enc));
    
            enc = "Shift_JIS";
            assertEquals("Shift_JIS", encodingHelper.normalize(enc));
    
            enc = "S-JIS";
            assertEquals("Shift_JIS", encodingHelper.normalize(enc));
        }
    
        public void test_normalize_null() {
            String enc;
    
            enc = null;
            assertNull(encodingHelper.normalize(enc));
    
            enc = "";
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/suggest/normalizer/ICUNormalizer.java

     *
     * <p>Example usage:</p>
     * <pre>
     * ICUNormalizer normalizer = new ICUNormalizer("Any-Latin; NFD; [:Nonspacing Mark:] Remove; NFC");
     * String normalizedText = normalizer.normalize("text to normalize", "field");
     * </pre>
     *
     * @see com.ibm.icu.text.Transliterator
     */
    public class ICUNormalizer implements Normalizer {
        /** The transliterator used for normalization. */
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/suggest/normalizer/NormalizerChain.java

            }
            return tmp;
        }
    
        /**
         * Adds a normalizer to the chain.
         * @param normalizer The normalizer to add.
         */
        public void add(final Normalizer normalizer) {
            normalizers.add(normalizer);
        }
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/suggest/normalizer/ICUNormalizerTest.java

     */
    package org.codelibs.fess.suggest.normalizer;
    
    import junit.framework.TestCase;
    
    public class ICUNormalizerTest extends TestCase {
        public void test_FullwidthHalfwidth() {
            ICUNormalizer normalizer = new ICUNormalizer("Fullwidth-Halfwidth");
    
            assertEquals("abcd", normalizer.normalize("abcd", null));
            assertEquals("みかん", normalizer.normalize("みかん", null));
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Sat Mar 15 06:51:20 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/suggest/normalizer/HankakuKanaToZenkakuKana.java

     * <pre>
     * {@code
     * HankakuKanaToZenkakuKana normalizer = new HankakuKanaToZenkakuKana();
     * String normalized = normalizer.normalize("ガギグゲゴ", "field");
     * System.out.println(normalized); // Outputs: ガギグゲゴ
     * }
     * </pre>
     *
     * <p>Note: This class assumes that the input string contains valid Hankaku Kana characters
     * and does not perform any validation on the input.</p>
     *
     * @see Normalizer
     */
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/EncodingHelper.java

         */
        public EncodingHelper() {
            // Default constructor
        }
    
        /**
         * Normalizes an encoding string to its preferred form.
         *
         * @param enc the encoding string to normalize
         * @return the normalized encoding or the default encoding if the input is blank
         */
        public String normalize(final String enc) {
            if (StringUtil.isBlank(enc)) {
                return defaultEncoding;
            }
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/suggest/index/contents/DefaultContentsParser.java

                    if (isExcludeSearchword(words[i], fields != null && fields.length > 0 ? fields[0] : "", langs, analyzer)) {
                        continue;
                    }
    
                    final String word = normalizer.normalize(words[i], fields != null && fields.length > 0 ? fields[0] : "", langs);
                    final List<String> l = readingConverter.convert(word, fields != null && fields.length > 0 ? fields[0] : "", langs);
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  10. fess-crawler-lasta/src/main/resources/crawler/urlconverter.xml

    <!DOCTYPE components PUBLIC "-//DBFLUTE//DTD LastaDi 1.0//EN"
    	"http://dbflute.org/meta/lastadi10.dtd">
    <components namespace="fessCrawler">
    	<include path="crawler/container.xml" />
    
    	<!-- Converts child links to normalize it. -->
    	<component name="urlConvertHelper" class="org.codelibs.fess.crawler.helper.UrlConvertHelper">
    	</component>
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Oct 11 02:16:55 UTC 2015
    - 394 bytes
    - Viewed (0)
Back to top