An implementation of a BERT encoder and decoder in Scala. On a bear-skin rug. Wearing only a mustache.
$ mvn package
$ cd target
$ echo "The moment you grab someone by the lapels, you're lost."
import com.codahale.bert.BERT
val person = BERT("Coda Hale", List(1, 2, 3))
val data = person.toArray
BERT.parse(data) match {
case BERT(name, numbers) =>
println(name + " can count: " + numbers)
}
MIT license. See COPYING.txt. Don't you ever take off that stupid hat?
(h/t to Toby Sterrett for the name.)