Unifying knowledge acquisition and machine learning for applications