2010/4/23 sriram <[email protected]>: > Hi, > > I want to group two categories into one in monodix. > > for e.g > > <sdef n="cat:n" c="Noun"/> > <sdef n="cat:adj" c="adj"/> > > into one . Is there any methods to do it in monodix. > > I can group the categories in t1x file > > for e.g . I can group different kind of verbs into one "verb". > > <def-cat n="verb"> > <cat-item tags="vblex.*"/> > <cat-item tags="vbser.*"/> > <cat-item tags="vbhaver.*"/> > <cat-item tags="vbmod.*"/> > </def-cat> > > > Reason: In Hindi many nouns behave as adjectives. Hence to provide both > "adjective" and "noun" analysis for these words , we can assign them a > new-category "adj-noun" or something like this. > > Thanks, > Sriram
You can have pardefs that refer to pardefs, if that helps… but could you give an example? If I were to do group these for Norwegian, eg. the lemma "norsk" can be both the adjective and noun (meaning "Norwegian"), I could either use one big pardef, like this: <pardef n="regular__adj-noun"> <e> <p><l>are</l> <r><s n="adj"/><s n="comp"/></r></p></e> <e> <p><l></l> <r><s n="adj"/><s n="posi"/><s n="mf"/><s n="sg"/><s n="ind"/></r></p></e> <e> <p><l></l> <r><s n="adj"/><s n="posi"/><s n="nt"/><s n="sg"/><s n="ind"/></r></p></e> <e> <p><l>e</l> <r><s n="adj"/><s n="posi"/><s n="pl"/></r></p></e> <e> <p><l>e</l> <r><s n="adj"/><s n="posi"/><s n="sg"/><s n="def"/></r></p></e> <e> <p><l>aste</l> <r><s n="adj"/><s n="sup"/><s n="def"/></r></p></e> <e> <p><l>ast</l> <r><s n="adj"/><s n="sup"/><s n="ind"/></r></p></e> <e> <p><l>ane</l> <r><s n="n"/><s n="m"/><s n="pl"/><s n="def"/></r></p></e> <e> <p><l>ar</l> <r><s n="n"/><s n="m"/><s n="pl"/><s n="ind"/></r></p></e> <e> <p><l>en</l> <r><s n="n"/><s n="m"/><s n="sg"/><s n="def"/></r></p></e> <e> <p><l></l> <r><s n="n"/><s n="m"/><s n="sg"/><s n="ind"/></r></p></e> </pardef> <e lm="norsk"> <i>norsk</i><par n="regular__adj-noun"/></e> Or I could use a pardef that refers to two other pardefs, like this: <pardef n="svart__adj"> <e> <p><l>are</l> <r><s n="adj"/><s n="comp"/></r></p></e> <e> <p><l></l> <r><s n="adj"/><s n="posi"/><s n="mf"/><s n="sg"/><s n="ind"/></r></p></e> <e> <p><l></l> <r><s n="adj"/><s n="posi"/><s n="nt"/><s n="sg"/><s n="ind"/></r></p></e> <e> <p><l>e</l> <r><s n="adj"/><s n="posi"/><s n="pl"/></r></p></e> <e> <p><l>e</l> <r><s n="adj"/><s n="posi"/><s n="sg"/><s n="def"/></r></p></e> <e> <p><l>aste</l> <r><s n="adj"/><s n="sup"/><s n="def"/></r></p></e> <e> <p><l>ast</l> <r><s n="adj"/><s n="sup"/><s n="ind"/></r></p></e> </pardef> <pardef n="ep__n"> <e> <p><l>ane</l> <r><s n="n"/><s n="m"/><s n="pl"/><s n="def"/></r></p></e> <e> <p><l>ar</l> <r><s n="n"/><s n="m"/><s n="pl"/><s n="ind"/></r></p></e> <e> <p><l>en</l> <r><s n="n"/><s n="m"/><s n="sg"/><s n="def"/></r></p></e> <e> <p><l></l> <r><s n="n"/><s n="m"/><s n="sg"/><s n="ind"/></r></p></e> </pardef> <pardef n="regular__adj-noun"> <e> <p><l></l> <r></r></p><par n="svart__adj"/></e> <e> <p><l></l> <r></r></p><par n="ep__n"/></e> </pardef> <e lm="norsk"> <i>norsk</i><par n="regular__adj-noun"/></e> (With the latter method you might save some lines in your dix?) hope this helped, Kevin Brubeck Unhammer ------------------------------------------------------------------------------ _______________________________________________ Apertium-stuff mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/apertium-stuff
