Chinese Tokenization Demo ported to Scala.