SPN-based language model