This is a small java demo of how you can use bayes classifications to assign budgetpositions. The java demo was written for a blog series in german https://www.puzzle.ch/de/blog/articles/2016/11/21/machine-learning-einsatz-von-bayesschen-klassifikatoren
Downlaod Weka from https://sourceforge.net/projects/weka/files/latest/download and copy the weka.jar file to the main folder of the project.