java.lang.Object
org.xbib.interlibrary.catalog.matching.string.SimpleEntropyEncoder
Alle implementierten Schnittstellen:
StringEncoder

public class SimpleEntropyEncoder extends Object implements StringEncoder
A simple entropy encoder Inspired by: Character coding for bibliographical record control. E. J. Yannakoudakis, F. H. Ayres and J. A. W. Huggill. Computer Centre, University of Bradford, 1980 Yannakoudakis, E. J. Derived search keys for bibliographic retrieval. SIGIR Forum 17, 4 (Jun. 1983), 220-237.
  • Konstruktordetails

    • SimpleEntropyEncoder

      public SimpleEntropyEncoder()
  • Methodendetails

    • encode

      public String encode(String s) throws EncoderException
      Encode a string by a simple entropy-based method. Strategy: count characters in lower-case string, select only characters with a frequency of 1, drop space characters.
      Angegeben von:
      encode in Schnittstelle StringEncoder
      Parameter:
      s - s
      Gibt zurück:
      encoded string
      Löst aus:
      EncoderException - if encoding fails