false79
false79
Jul 31 · 1 min read

Awesome! I was able to get this work in Kotlin using your tutorial

// Train and Write model
fun main() {
val modelPath = “C:\\customEntity.model”
trainAndWrite(
modelPath,
“C:\\config.properties”,
“C:\\training.dat”)

val crfClassifier = getModel(modelPath)

val tests = arrayOf(“Apple”, “Orange”)
for (item in tests) {
doTagging(crfClassifier, item)
}
}

// Output
Apple=>Apple/Fruit
Orange=>Orange/Fruit

    false79

    Written by

    false79