Hi,
it works slightly different in swe-dan, as the grades are
included in each paradigm (adjgrad doesn't exist)).

I looked at the diskret_amerikansk__adj paradigm and tried to add the
following lines in
afrikansk_amerikansk__adj:

  <e r="LR" a="PT"><p><l><s n="comp"/><s n="un"/><s n="sp"/></l><r><s
  n="unsint"/><s n="comp"/><s n="un"/><s n="ND"/></r></p></e>
  <e r="LR" a="PT"><p><l><s n="sup"/><s n="un"/><s n="sp"/></l><r><s
  n="unsint"/><s n="sup"/><s n="un"/><s n="ND"/></r></p></e>

Unfortunately this doesn't work:

echo "afrikanskare" | apertium -d . swe-dan

*afrikanskare

Yours,
Per Tunedal

On Mon, Mar 9, 2015, at 09:00, Kevin Brubeck Unhammer wrote:
> Per Tunedal <[email protected]>
> writes:
> 
> > Hi Francis,
> > Excellent! What should I do to get it to work in the opposite direction.
> > I would like to keep the analysis of incorrectly inflected adjectives,
> > like "samhälleligare", but "mer samhällelig" should be generated.
> 
> You could mark "samhälleligare" as LR.
> 
> The nno-nob bidix uses pardefs for the various possibilities like
> adj.sint to adj (or adj to adj.sint). If you allow a synthetic LR form
> in an otherwise analytic monodix pardef, the bidix pardefs could deal
> with that. If we use the bidix pardefs from nno-nob as a basis, it'd
> probably look something like this:
> 
> <pardef n="adjgrad" c="Used by adj pardefs">
>   <e>       <p><l><s n="comp"/></l>             <r><s
>   n="comp"/></r></p></e>
>   <e>       <p><l><s n="pst"/></l>              <r><s
>   n="pst"/></r></p></e>
>   <e>       <p><l><s n="sup"/></l>              <r><s
>   n="sup"/></r></p></e>
> </pardef>
> <pardef n="adj" c="Analytic on both sides">
>   <e>       <p><l><s n="adj"/></l>              <r><s
>   n="adj"/></r></p><par n="adjgrad"/></e>
>   <e r="LR"><p><l><s n="adj"/><s n="sint"/></l> <r><s
>   n="adj"/></r></p><par n="adjgrad"/></e>
>   <e r="RL"><p><l><s n="adj"/></l>              <r><s n="adj"/><s
>   n="sint"/></r></p><par n="adjgrad"/></e>
> </pardef>
> <pardef n="adj_sint" c="Synthetic on both sides">
>   <e>       <p><l><s n="adj"/><s n="sint"/></l> <r><s n="adj"/><s
>   n="sint"/></r></p><par n="adjgrad"/></e>
> </pardef>
> <pardef n="adj_sint:adj" c="Synthetic left, analytic right">
>   <e>       <p><l><s n="adj"/><s n="sint"/></l> <r><s
>   n="adj"/></r></p><par n="adjgrad"/></e>
>   <e r="RL"><p><l><s n="adj"/><s n="sint"/></l> <r><s n="adj"/><s
>   n="sint"/></r></p><par n="adjgrad"/></e>
> </pardef>
> <pardef n="adj:adj_sint" c="Analytic left, synthetic right">
>   <e>       <p><l><s n="adj"/></l>              <r><s n="adj"/><s
>   n="sint"/></r></p><par n="adjgrad"/></e>
>   <e r="LR"><p><l><s n="adj"/><s n="sint"/></l> <r><s n="adj"/><s
>   n="sint"/></r></p><par n="adjgrad"/></e>
> </pardef>
> 
> The analytic adj pardef translates adj to adj, but if it sees an
> adj.sint (samhälleligare), it translates it into analytic adj. Similarly
> for the other pardefs. The "adjgrad" is there to make sure we don't have
> two pardefs matching the same input.
> 
> -----
> 
> I don't think it makes sense to correct the other direction, that'd just
> lead to overcorrection (try searching the web for e.g. "mer vacker";
> most of the hits seem to be correct, like "lite mer vacker höstskräck",
> "aldrig mer väcker").
> 
> -- 
> Kevin Brubeck Unhammer
> 
> GPG: 0x766AC60C
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub
> for all
> things parallel software development, from weekly thought leadership
> blogs to
> news, videos, case studies, tutorials and more. Take a look and join the 
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Apertium-stuff mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/apertium-stuff
> Email had 1 attachment:
> + signature.asc
>   1k (application/pgp-signature)

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to