@ Sof v1.0 @
@ LanguageModelXML 0 @
search_tag_0 = 
"<?xml version='1.0' encoding='utf-8'?>
<grammar root='level0'>
<rule id='level0'>
  word
</rule>
</grammar>
";
grammars_0 = { 
  "<?xml version='1.0' encoding='utf-8'?>
   <!-- this grammar combines many of the other tests to -->
   <!-- check for combinatorial errors. it contains      -->
   <!-- strange nesting, irrelevant tags, irregular      -->
   <!-- spacing, illegal weights, loop-backs, repeat     -->
   <!-- probabilities, rule references, and duplicate    -->
   <!-- symbols. -->
<grammar root='word'>
<tag> unimportant junk </tag>
<metadata> author: Dhruva </metadata>
<rule id='word'>
  <item weight='0.5'> symbol0 </item> <!-- an illegal weight -->
  symbol1  <!-- a duplicate symbol -->
  <one-of> 
    <item repeat='1-' repeat-prob='0.98'> <!-- self loop and weight -->
       symbol1 
      <one-of>
	<item>
		<ruleref uri='#rule2'/>        
	</item>
      </one-of>
      symbol3 
    </item>
    <item>
      <ruleref uri='#rule3'/>
    </item>
  </one-of>
  symbol1  <!-- a duplicate symbol -->   
</rule>

<rule id='rule2'>
  <item weight='0.1'> symbol2a </item> 
  <item weight='0.2'> symbol2b </item>
  <item weight='0.3'> symbol2c </item>
</rule>


<rule id='rule3'>  symbol6  <item> <one-of>
 <item> symbol4 </item><item> symbol5 </item>
</one-of>     </item>  symbol7</rule>

</grammar>
 "
};
