The critical part of learning to split compound words is to correctly identify the location(s) of the split(s).
then, a morpheme dictionary of Sanskrit words is used with other heuristics to remove infeasible word split combinations.