Hey Brian. We created a demo Mendix app that illustrates several use cases for various types of ML models. Bert is among these, and you have there examples of implementing java pre and post processors for that version of BERT specifically, please take a look:
GitHub - mendix/mlkit-example-app: Demo for Mendix MLKit.
Good luck!
To anyone who reads this, The Mendix ML TookKit has a *LONG* way to go before it becomes useful. I tried out the example project in the answers above, only to get tons of errors in many of these examples. The BERT one DID work, but it does a poor job of answering even the most basic questions with straight forward context.
Most models you import will have missing tensor data and there is no way to know what to put in it. Even if you do, you can’t just feed the inputs into the model directly and read directly from it. You have to write a large amount of java code to pre/post process the text which is NOT straightforward at all. This pretty much defeats the purpose of using Mendix in the first place.
I wouldn’t recommend the ML Toolkit to anyone right now. It has some potential, but it isn’t going to be useful to anyone until there’s some sort of built in pre/post processing modules as a part of the toolkit.