Thanks Kevin. I was just traversing an extra mile unnecesarily. It works fine.
-- Amba On 2 December 2016 at 20:22, Kevin Brubeck Unhammer <[email protected]> wrote: > Amba Kulkarni <[email protected]> > čálii: > > > Hello, > > > > I need an extra feature in handling the derivational morphology. > > I have a case > > X -> Xja (derivational suffix ja) > > and Xja -> Xjam (inflectional morph) > > > > I have the following dix file > > > > <?xml version="1.0"?> > > <dictionary> > > <alphabet>abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</ > alphabet> > > <sdefs> > > > > <sdef n="vargaH:nA" c="Noun"/> > > <sdef n="vargaH:nA_ja" c="Noun"/> > > > > <sdef n="lifgam:puM" c="masculine"/> > > > > <sdef n="vacanam:eka" c="singular"/> > > <sdef n="vacanam:xvi" c="dual"/> > > <sdef n="vacanam:bahu" c="plural"/> > > > > <sdef n="viBakwiH:1" c="1"/> > > > > <sdef n="level:0" c="0"/> > > <sdef n="level:3" c="3"/> > > > > <sdef n="upapaxa_cp:ja" c="upapaxa_cp:ja"/> > > </sdefs> > > > > <pardefs> > > <pardef n="rAm/a__utja"> > > <e><p><l>aH</l> <r>a<s n="vargaH:nA_ja"/><s n="lifgam:puM"/><s > n="viBakwiH:1"/><s > > n="vacanam:eka"/><s n="level:3"/></r></p></e> > > <e><p><l>O</l> <r>a<s n="vargaH:nA_ja"/><s n="lifgam:puM"/><s > n="viBakwiH:1"/><s > > n="vacanam:xvi"/><s n="level:3"/></r></p></e> > > <e><p><l>AH</l> <r>a<s n="vargaH:nA_ja"/><s n="lifgam:puM"/><s > n="viBakwiH:1"/><s > > n="vacanam:bahu"/><s n="level:3"/></r></p></e> > > </pardef> > > > > <pardef n="jFAn/a__uc"> > > <e><p><l>aja</l><r>a<s n="vargaH:nA"/><s n="upapaxa_cp:ja"/><s > n="lifgam:puM"/><s > > n="level:0"/></r></p></e> > > <e><p><l></l><r></r></p><i>aj</i><par n="rAm/a__utja"/></e> > > </pardef> > > </pardefs> > > > > <section id="main" type="standard"> > > <e lm="jFAna"><i>jFAn</i><par n="jFAn/a__uc"/></e> > > </section> > > </dictionary> > > > > The current output is: > > > > jFAnajaH > > ^jFAnajaH/jFAnaja<vargaH:nA_ja><lifgam:puM><viBakwiH:1>< > vacanam:eka><level:3>$ > > jFAnaja > > ^jFAnaja/jFAna<vargaH:nA><upapaxa_cp:ja><lifgam:puM><level:0>$ > > > > However I would like to have the following output: > > > > jFAnajaH > > ^jFAnajaH/jFAna<upapaxa_cp:ja><vargaH:nA_ja><lifgam:puM>< > viBakwiH:1><vacanam:eka><level:3>$ > > > > jFAnaja > > ^jFAnaja/jFAna<vargaH:nA><upapaxa_cp:ja><lifgam:puM><level:0>$ > > > > Essentially I would like to have the output of derivational morph and > the inflectional morph > > combined. > > > > May I know if this feature exists in the current version. If not, may I > request to have this feature as > > well in your next version of lt-proc? > > I didn't quite understand the issue, but changing the pardefs to > > <pardef n="rAm/a__utja"> > <e><p><l>aH</l> <r><s n="upapaxa_cp:ja"/><s n="vargaH:nA_ja"/><s > n="lifgam:puM"/><s n="viBakwiH:1"/><s > n="vacanam:eka"/><s n="level:3"/></r></p></e> > <e><p><l>O</l> <r><s n="vargaH:nA_ja"/><s n="lifgam:puM"/><s > n="viBakwiH:1"/><s > n="vacanam:xvi"/><s n="level:3"/></r></p></e> > <e><p><l>AH</l> <r><s n="vargaH:nA_ja"/><s n="lifgam:puM"/><s > n="viBakwiH:1"/><s > n="vacanam:bahu"/><s n="level:3"/></r></p></e> > </pardef> > > <pardef n="jFAn/a__uc"> > <e><p><l>aj</l><r>a</r></p><i></i><par n="rAm/a__utja"/></e> > <e><p><l>aja</l><r>a<s n="vargaH:nA"/><s n="upapaxa_cp:ja"/><s > n="lifgam:puM"/><s > n="level:0"/></r></p></e> > </pardef> > > gives > > ^jFAnajaH/jFAna<upapaxa_cp:ja><vargaH:nA_ja><lifgam:puM>< > viBakwiH:1><vacanam:eka><level:3>$ > ^jFAnaja/jFAna<vargaH:nA><upapaxa_cp:ja><lifgam:puM><level:0>$ > > (What are the other forms supposed to look like?) > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Apertium-stuff mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/apertium-stuff > > -- Fellow, Indian Institute of Advanced Study, Shimla आ नो भद्रा: क्रतवो यन्तु विश्वत: ll Let noble thoughts come to us from every side. - Rig Veda, I-89-i. Prof. (On leave) Department of Sanskrit Studies University of Hyderabad Prof. C.R. Rao Road Hyderabad-500 046 (91) 040 23133802(off) http://sanskrit.uohyd.ac.in/scl <http://sanskrit.uohyd.ernet.in/scl> http://sanskrit.uohyd.ac.in/faculty/amba <http://sanskrit.uohyd.ernet.in/faculty/amba>
------------------------------------------------------------------------------
_______________________________________________ Apertium-stuff mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/apertium-stuff
