Object

com.github.vickumar1981.stringdistance

StringDistance

Related Doc: package stringdistance

Permalink

object StringDistance

Main class to organize functionality of different string distance algorithms

import com.github.vickumar1981.stringdistance.StringDistance._

// Scores between strings
val cosSimilarity: Double = Cosine.score("hello", "chello")
val diceCoefficient: Double = DiceCoefficient.score("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 levenshtein: Double = Levenshtein.score("martha", "marhta")
val ngramSimilarity: Double = NGram.score("karolin", "kathrin")
val bigramSimilarity: Double = NGram.score("karolin", "kathrin", 2)
val overlap: Double = Overlap.score("karolin", "kathrin")

// Distances between strings
val hammingDist: Int = Hamming.distance("martha", "marhta")
val levenshteinDist: Int = Levenshtein.distance("martha", "marhta")
val longestCommonSubSeq: Int = LongestCommonSeq.distance("martha", "marhta")
val ngramDist: Int = NGram.distance("karolin", "kathrin")
val bigramDist: Int = NGram.distance("karolin", "kathrin", 2)
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StringDistance
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object Cosine extends StringMetric[CosineAlgorithm]

    Permalink
  5. object DiceCoefficient extends StringMetric[DiceCoefficientAlgorithm]

    Permalink
  6. object Hamming extends StringMetric[HammingAlgorithm]

    Permalink
  7. object Jaccard extends StringMetric[JaccardAlgorithm]

    Permalink
  8. object Jaro extends StringMetric[JaroAlgorithm]

    Permalink
  9. object JaroWinkler extends StringMetric[JaroWinklerAlgorithm]

    Permalink
  10. object Levenshtein extends StringMetric[LevenshteinAlgorithm]

    Permalink
  11. object LongestCommonSeq extends StringMetric[LongestCommonSeqAlorithm]

    Permalink
  12. object NGram extends StringMetric[NGramAlgorithm]

    Permalink
  13. object Overlap extends StringMetric[OverlapAlgorithm]

    Permalink
  14. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped