On 26 May 2015 at 08:26, Mikel L. Forcada <[email protected]> wrote:
> Dear Apertiumers:
>
> Assem and I are modifying some .t1x rules in apertium-eng-kaz so that we get
> the right case.
>
> (1) There is a problem with our apertium-eng-kaz.eng-kaz.t1x rule for "det
> adjec noun". The current version of this rule provides the right casing when
> the translation actually contains a word that translates the determiner
> (possessives, demonstratives) but not when the determiner is "A" or "The".
> These two words are translated into an empty string in
> apertium-eng-kaz.eng-kaz.t1x. I have tried putting something there (such as
> a fake Kazakhbut haven't succeeded in getting the case with
> "case=caseFirstWord".
>
That's because it's not being set. There is a single macro
('change-case'), which seems related to the second part of your
problem, but other than that, caseFirstWord is unset, so you get the
default.
Looking at Assem's last commit, and at the 'change-case' macro, I
think there are two misunderstandings here:
1. 'caseFirstWord' is not built in. It's a normal variable.
2. It's intended to set the case of the first word of the sentence.
The way that's usually done is by setting a variable 'EOS' to 'true'
in any rule that matches 'sent'. A macro, usually called 'firstWord',
checks if EOS is 'true', and, if so, sets caseFirstWord. (The macro
also sets 'EOS' to 'false'). To work, it needs to be called by *every*
rule.
One warning, related to 2, is that if a firstWord-type macro is added
to that transfer file, the parts of 'change-case' that change
'caseFirstWord' should be checked.
> (2) A related problem occurs with the rule for pronouns. I cannot get the
> translation of "I" to be in upper case when translating into Kazakh. This
> may be due to the fact that I is always written in upper case in English,
> but I am not sure.
The macro 'change-case' looks like it would work (minus the
'caseFirstWord' stuff), but it's not being called by the 'subj-pron'
rule. (It doesn't look like it's being called anywhere where it would
work).
--
<Sefam> Are any of the mentors around?
<jimregan> yes, they're the ones trolling you
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff