Trainable grammars for speech recognition | Synapse