bag2

fun String.bag2(filter: String = "default", stemmer: Stemmer? = porter): Set<String>

Returns the binary bag of words. Presence/absence is used instead of frequencies.