diff options
author | Rocky Madden <git@rockymadden.com> | 2013-12-28 18:52:02 -0700 |
---|---|---|
committer | Rocky Madden <git@rockymadden.com> | 2013-12-28 18:52:02 -0700 |
commit | c19155312c3237f49ab21ac0de2b8c29e76f11f3 (patch) | |
tree | 3c6f3e3f7e780123525e672d474902ca7396b3f6 /core/source | |
parent | 39ad84a8a52d1a4e3011e0d8134cbf680c3d2873 (diff) | |
download | stringmetric-c19155312c3237f49ab21ac0de2b8c29e76f11f3.tar.gz stringmetric-c19155312c3237f49ab21ac0de2b8c29e76f11f3.tar.bz2 stringmetric-c19155312c3237f49ab21ac0de2b8c29e76f11f3.zip |
Changed to public access modifiers.
Diffstat (limited to 'core/source')
5 files changed, 5 insertions, 5 deletions
diff --git a/core/source/main/scala/com/rockymadden/stringmetric/similarity/DiceSorensenMetric.scala b/core/source/main/scala/com/rockymadden/stringmetric/similarity/DiceSorensenMetric.scala index 79d259d..a9617d5 100755 --- a/core/source/main/scala/com/rockymadden/stringmetric/similarity/DiceSorensenMetric.scala +++ b/core/source/main/scala/com/rockymadden/stringmetric/similarity/DiceSorensenMetric.scala @@ -6,7 +6,7 @@ import com.rockymadden.stringmetric.Metric.StringMetric * An implementation of the Dice/Sorensen metric. This implementation differs in that n-gram size is required. * Traditionally, the algorithm uses bigrams. */ -final case class DiceSorensenMetric(private val n: Int) extends StringMetric[Double] { +final case class DiceSorensenMetric(n: Int) extends StringMetric[Double] { import com.rockymadden.stringmetric.tokenize.NGramTokenizer import com.rockymadden.stringmetric.MatchTuple diff --git a/core/source/main/scala/com/rockymadden/stringmetric/similarity/JaccardMetric.scala b/core/source/main/scala/com/rockymadden/stringmetric/similarity/JaccardMetric.scala index c57ff56..d3c350b 100755 --- a/core/source/main/scala/com/rockymadden/stringmetric/similarity/JaccardMetric.scala +++ b/core/source/main/scala/com/rockymadden/stringmetric/similarity/JaccardMetric.scala @@ -2,7 +2,7 @@ package com.rockymadden.stringmetric.similarity import com.rockymadden.stringmetric.Metric.StringMetric -final case class JaccardMetric(private val n: Int) extends StringMetric[Double] { +final case class JaccardMetric(n: Int) extends StringMetric[Double] { import com.rockymadden.stringmetric.tokenize.NGramTokenizer override def compare(a: Array[Char], b: Array[Char]): Option[Double] = { diff --git a/core/source/main/scala/com/rockymadden/stringmetric/similarity/NGramMetric.scala b/core/source/main/scala/com/rockymadden/stringmetric/similarity/NGramMetric.scala index 240c933..119c8c7 100755 --- a/core/source/main/scala/com/rockymadden/stringmetric/similarity/NGramMetric.scala +++ b/core/source/main/scala/com/rockymadden/stringmetric/similarity/NGramMetric.scala @@ -2,7 +2,7 @@ package com.rockymadden.stringmetric.similarity import com.rockymadden.stringmetric.Metric.StringMetric -final case class NGramMetric(private val n: Int) extends StringMetric[Double] { +final case class NGramMetric(n: Int) extends StringMetric[Double] { import com.rockymadden.stringmetric.MatchTuple import com.rockymadden.stringmetric.tokenize.NGramTokenizer import scala.math diff --git a/core/source/main/scala/com/rockymadden/stringmetric/similarity/OverlapMetric.scala b/core/source/main/scala/com/rockymadden/stringmetric/similarity/OverlapMetric.scala index 718833f..b378190 100755 --- a/core/source/main/scala/com/rockymadden/stringmetric/similarity/OverlapMetric.scala +++ b/core/source/main/scala/com/rockymadden/stringmetric/similarity/OverlapMetric.scala @@ -2,7 +2,7 @@ package com.rockymadden.stringmetric.similarity import com.rockymadden.stringmetric.Metric.StringMetric -final case class OverlapMetric(private val n: Int) extends StringMetric[Double] { +final case class OverlapMetric(n: Int) extends StringMetric[Double] { import com.rockymadden.stringmetric.MatchTuple import com.rockymadden.stringmetric.tokenize.NGramTokenizer import scala.math diff --git a/core/source/main/scala/com/rockymadden/stringmetric/tokenize/NGramTokenizer.scala b/core/source/main/scala/com/rockymadden/stringmetric/tokenize/NGramTokenizer.scala index 8784ca5..d6378d7 100755 --- a/core/source/main/scala/com/rockymadden/stringmetric/tokenize/NGramTokenizer.scala +++ b/core/source/main/scala/com/rockymadden/stringmetric/tokenize/NGramTokenizer.scala @@ -2,7 +2,7 @@ package com.rockymadden.stringmetric.tokenize import com.rockymadden.stringmetric.Tokenizer.StringTokenizer -final case class NGramTokenizer(private val n: Int) extends StringTokenizer { +final case class NGramTokenizer(n: Int) extends StringTokenizer { override def tokenize(a: Array[Char]): Option[Array[Array[Char]]] = { if (n <= 0) return None |