Class LyricsAlignment
- java.lang.Object
-
- com.tagtraum.ubermusic.luckylyrics.LyricsAlignment
-
public class LyricsAlignment extends Object
Computes an optimal alignment between two lyrics.- Author:
- Hendrik Schreiber
-
-
Constructor Summary
Constructors Constructor Description LyricsAlignment(String lyrics1, String lyrics2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getDistance()
Value between 0 and 1 indicating the distance between two lyrics.String
getLyrics()
Shorter original lyrics.String
getMergedLyrics()
Merged lyrics.
-
-
-
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
-
-