Class LyricsAlignment


  • public class LyricsAlignment
    extends Object
    Computes an optimal alignment between two lyrics.
    Author:
    Hendrik Schreiber
    • Constructor Detail

      • LyricsAlignment

        public LyricsAlignment​(String lyrics1,
                               String lyrics2)
    • Method Detail

      • getDistance

        public float getDistance()
        Value between 0 and 1 indicating the distance between two lyrics.
        Returns:
        0 == identical, 1 == not two lines are alike
      • getMergedLyrics

        public String getMergedLyrics()
        Merged lyrics.
        Returns:
        merges lyrics
      • getLyrics

        public String getLyrics()
        Shorter original lyrics.
        Returns:
        lyrics