Product Jacobi-Theta Boltzmann machines with score matching