Skip to content

Instantly share code, notes, and snippets.

@jimregan
Created August 21, 2013 19:37
Show Gist options
  • Save jimregan/6299140 to your computer and use it in GitHub Desktop.
Save jimregan/6299140 to your computer and use it in GitHub Desktop.
Simple crossdics run, crossdics run with pardefs
<?xml version="1.0" encoding="UTF-8"?>
<!--
Dictionary:
Bilingual dictionary: cross-cross
Sections: 1
Entries: 1
Sdefs: 3
Last processed by: apertium-dixtools -noalign cross -debug -monA simple-cross-monA.dix -bilAB simple-cross-dictA.dix -bilBC simple-cross-dictB.dix -monC simple-cross-monC.dix -cross-model simple-crossmodel.xml
Patterns applied:
noun (1 times)
-->
<dictionary>
<alphabet></alphabet>
<sdefs>
<sdef n="pl" />
<sdef n="n" />
<sdef n="sg" />
</sdefs>
<section id="main" type="standard">
<!-- forced 'null' restriction
noun -->
<e>
<p>
<l>pies<s n="n"/></l>
<r>perro<s n="n"/></r>
</p>
</e>
</section>
</dictionary>
<?xml version="1.0" encoding="UTF-8"?>
<!--
Dictionary:
Bilingual dictionary: cross-cross
Sections: 1
Entries: 1
Sdefs: 3
Last processed by: apertium-dixtools -noalign cross -debug -monA pardef-cross-monA.dix -bilAB pardef-cross-dictA.dix -bilBC pardef-cross-dictB.dix -monC pardef-cross-monC.dix -cross-model pardef-crossmodel.xml
Patterns applied:
noun (1 times)
-->
<dictionary>
<alphabet></alphabet>
<sdefs>
<sdef n="pl" />
<sdef n="n" />
<sdef n="sg" />
</sdefs>
<section id="main" type="standard">
<!-- forced 'null' restriction
noun -->
<e>
<p>
<l>pies<s n="n"/></l>
<r>perro<s n="n"/></r>
</p>
</e>
</section>
</dictionary>
<dictionary>
<alphabet></alphabet>
<sdefs>
<sdef n="n"/>
<sdef n="sg"/>
<sdef n="pl"/>
</sdefs>
<pardefs>
<pardef n="foo">
<e><p><l></l><r></r></p></e>
</pardef>
</pardefs>
<section id="main" type="standard">
<e><p><l>dog<s n="n"/></l><r>pies<s n="n"/></r><par n="foo"/></p></e>
</section>
</dictionary>
<dictionary>
<alphabet></alphabet>
<sdefs>
<sdef n="n"/>
<sdef n="sg"/>
<sdef n="pl"/>
</sdefs>
<section id="main" type="standard">
<e><p><l>pies<s n="n"/></l><r>perro<s n="n"/></r></p></e>
</section>
</dictionary>
<dictionary>
<alphabet></alphabet>
<sdefs>
<sdef n="n"/>
<sdef n="sg"/>
<sdef n="pl"/>
</sdefs>
<section id="main" type="standard">
<e><p><l>dog<s n="n"/></l><r>perro<s n="n"/></r></p></e>
</section>
</dictionary>
<dictionary>
<alphabet></alphabet>
<sdefs>
<sdef n="n"/>
<sdef n="sg"/>
<sdef n="pl"/>
</sdefs>
<section id="main" type="standard">
<e><p><l>pies</l><r>pies<s n="n"/></r></p></e>
</section>
</dictionary>
<dictionary>
<alphabet></alphabet>
<sdefs>
<sdef n="n"/>
<sdef n="sg"/>
<sdef n="pl"/>
</sdefs>
<section id="main" type="standard">
<e><p><l>perro</l><r>perro<s n="n"/></r></p></e>
</section>
</dictionary>
<cross-model>
<cross-action id="noun">
<description>Simple pattern</description>
<pattern>
<e>
<p>
<l>$lemmaA<s n="n"/></l>
<r>$lemmaB<s n="n"/></r>
</p>
<par n="foo"/>
</e>
<e>
<p>
<l>$lemmaB<s n="n"/></l>
<r>$lemmaC<s n="n"/></r>
</p>
</e>
</pattern>
<action-set>
<action>
<e>
<p>
<l>$lemmaA<s n="n"/></l>
<r>$lemmaC<s n="n"/></r>
</p>
</e>
</action>
</action-set>
</cross-action>
</cross-model>
java -jar ../dist/apertium-dixtools.jar -noalign cross -debug -monA pardef-cross-monA.dix -bilAB pardef-cross-dictA.dix -bilBC pardef-cross-dictB.dix -monC pardef-cross-monC.dix -cross-model pardef-crossmodel.xml
java -jar ../dist/apertium-dixtools.jar -noalign cross -debug -monA simple-cross-monA.dix -bilAB simple-cross-dictA.dix -bilBC simple-cross-dictB.dix -monC simple-cross-monC.dix -cross-model simple-crossmodel.xml
<dictionary>
<alphabet></alphabet>
<sdefs>
<sdef n="n"/>
<sdef n="sg"/>
<sdef n="pl"/>
</sdefs>
<section id="main" type="standard">
<e><p><l>dog<s n="n"/></l><r>pies<s n="n"/></r></p></e>
</section>
</dictionary>
<dictionary>
<alphabet></alphabet>
<sdefs>
<sdef n="n"/>
<sdef n="sg"/>
<sdef n="pl"/>
</sdefs>
<section id="main" type="standard">
<e><p><l>pies<s n="n"/></l><r>perro<s n="n"/></r></p></e>
</section>
</dictionary>
<dictionary>
<alphabet></alphabet>
<sdefs>
<sdef n="n"/>
<sdef n="sg"/>
<sdef n="pl"/>
</sdefs>
<section id="main" type="standard">
<e><p><l>dog<s n="n"/></l><r>perro<s n="n"/></r></p></e>
</section>
</dictionary>
<dictionary>
<alphabet></alphabet>
<sdefs>
<sdef n="n"/>
<sdef n="sg"/>
<sdef n="pl"/>
</sdefs>
<section id="main" type="standard">
<e><p><l>pies</l><r>pies<s n="n"/></r></p></e>
</section>
</dictionary>
<dictionary>
<alphabet></alphabet>
<sdefs>
<sdef n="n"/>
<sdef n="sg"/>
<sdef n="pl"/>
</sdefs>
<section id="main" type="standard">
<e><p><l>perro</l><r>perro<s n="n"/></r></p></e>
</section>
</dictionary>
<cross-model>
<cross-action id="noun">
<description>Simple pattern</description>
<pattern>
<e>
<p>
<l>$lemmaA<s n="n"/></l>
<r>$lemmaB<s n="n"/></r>
</p>
</e>
<e>
<p>
<l>$lemmaB<s n="n"/></l>
<r>$lemmaC<s n="n"/></r>
</p>
</e>
</pattern>
<action-set>
<action>
<e>
<p>
<l>$lemmaA<s n="n"/></l>
<r>$lemmaC<s n="n"/></r>
</p>
</e>
</action>
</action-set>
</cross-action>
</cross-model>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment