
com.rockymadden.stringmetric.Tokenizer.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stringmetric-core Show documentation
Show all versions of stringmetric-core Show documentation
String metrics and phonetic algorithms for Scala.
The newest version!
package com.rockymadden.stringmetric
object Tokenizer {
trait Tokenizer[A] {
def tokenize(a: A): Option[Array[A]]
}
trait StringTokenizer extends Tokenizer[Array[Char]] {
def tokenize(a: String): Option[Array[String]]
}
object StringTokenizer {
val NGram = com.rockymadden.stringmetric.tokenize.NGramTokenizer
def tokenizeWithNGram(n: Int)(charArray: Array[Char]) = NGram(n).tokenize(charArray)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy