Building general Langevin models from discrete datasets