object StringDistance
Main class to organize functionality of different string distance algorithms
import com.github.vickumar1981.stringdistance.StringDistance._ val cosSimilarity: Double = Cosine.score("hello", "chello") val diceCoefficient: Double = DiceCoefficient.score("martha", "marhta") val diceCoefficientWeighted: Double = DiceCoefficient.score("martha", "marhta", 0.2) val hammingDist: Int = Hamming.distance("martha", "marhta") val hamming: Double = Hamming.score("martha", "marhta") val jaccard: Double = Jaccard.score("karolin", "kathrin") val jaro: Double = Jaro.score("martha", "marhta") val jaroWinkler: Double = JaroWinkler.score("martha", "marhta") val levenshteinDist: Int = Levenshtein.distance("martha", "marhta") val levenshtein: Double = Levenshtein.score("martha", "marhta") val longestCommonSubSeq: Int = LongestCommonSeq.distance("martha", "marhta") val ngramSimilarity: Double = NGram.score("karolin", "kathrin") val bigramSimilarity: Double = NGram.score("karolin", "kathrin", 2) val overlap: Double = Overlap.score("karolin", "kathrin")
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- StringDistance
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- object Cosine extends StringDistanceImpl[CosineAlgorithm]
- object DiceCoefficient extends StringDistanceImpl[DiceCoefficientAlgorithm]
- object Hamming extends StringDistanceImpl[HammingAlgorithm]
- object Jaccard extends StringDistanceImpl[JaccardAlgorithm]
- object Jaro extends StringDistanceImpl[JaroAlgorithm]
- object JaroWinkler extends StringDistanceImpl[JaroWinklerAlgorithm]
- object Levenshtein extends StringDistanceImpl[LevenshteinAlgorithm]
- object LongestCommonSeq extends StringDistanceImpl[LongestCommonSeqAlorithm]
- object NGram extends StringDistanceImpl[NGramAlgorithm]
- object Overlap extends StringDistanceImpl[OverlapAlgorithm]