Re: [Apertium-stuff] Problem with letter case in interchunk (or after)

2021-10-09 Thread Daniel Swanson
 or similar should work just fine in
postchunk. If not, that's a bug I need to look into.

You might not be able to use tags in , but I'd have to
double check that.

On Sat, Oct 9, 2021 at 4:20 PM Hèctor Alòs i Font  wrote:
>
> As far as I know, in postchunk only the name of the chunk can be seen. We 
> cannot read any tag of the header (I don't know why). So, I don't see how to 
> put a condition in interchunk for the postchunk, except, maybe, changing the 
> name of the chunk.
>
> Missatge de Daniel Swanson  del dia ds., 9 d’oct. 
> 2021 a les 22:32:
>>
>> You could set the case of the chunk pseudolemma or else append a tag
>> to it and then condition on that in postchunk.
>>
>> On Sat, Oct 9, 2021 at 3:28 PM Hèctor Alòs i Font  
>> wrote:
>> >
>> > In the interchunk stage I am adding a word, which happens to be very often 
>> > at the beginning of a sentence. So I face two issues. On the one hand, to 
>> > put an initial capital letter to the word I add, if needed, and, on the 
>> > other hand, to remove the initial capital letter from the following word, 
>> > if needed too. For the former, I can more or less figure out how to do it, 
>> > although I have my doubts. For the following word, I don't see how: in 
>> > interchunk I don't have access to the word itself, so I don't know whether 
>> > it is capitalised or not; in postchunk I only have access to the 
>> > individual words, so I lack context; and in postgeneration it doesn't seem 
>> > to be possible to change words from uppercase to lowercase.
>> >
>> > Does anyone have any suggestions?
>> >
>> > $ echo "C'est une maison." | apertium -d . fra-oci_gascon
>> > qu'Ei un ostau.
>> >
>> > Hèctor
>> > ___
>> > Apertium-stuff mailing list
>> > Apertium-stuff@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/apertium-stuff
>>
>>
>> ___
>> Apertium-stuff mailing list
>> Apertium-stuff@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/apertium-stuff
>
> ___
> Apertium-stuff mailing list
> Apertium-stuff@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/apertium-stuff


___
Apertium-stuff mailing list
Apertium-stuff@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/apertium-stuff


Re: [Apertium-stuff] Problem with letter case in interchunk (or after)

2021-10-09 Thread Hèctor Alòs i Font
As far as I know, in postchunk only the name of the chunk can be seen. We
cannot read any tag of the header (I don't know why). So, I don't see how
to put a condition in interchunk for the postchunk, except, maybe, changing
the name of the chunk.

Missatge de Daniel Swanson  del dia ds., 9
d’oct. 2021 a les 22:32:

> You could set the case of the chunk pseudolemma or else append a tag
> to it and then condition on that in postchunk.
>
> On Sat, Oct 9, 2021 at 3:28 PM Hèctor Alòs i Font 
> wrote:
> >
> > In the interchunk stage I am adding a word, which happens to be very
> often at the beginning of a sentence. So I face two issues. On the one
> hand, to put an initial capital letter to the word I add, if needed, and,
> on the other hand, to remove the initial capital letter from the following
> word, if needed too. For the former, I can more or less figure out how to
> do it, although I have my doubts. For the following word, I don't see how:
> in interchunk I don't have access to the word itself, so I don't know
> whether it is capitalised or not; in postchunk I only have access to the
> individual words, so I lack context; and in postgeneration it doesn't seem
> to be possible to change words from uppercase to lowercase.
> >
> > Does anyone have any suggestions?
> >
> > $ echo "C'est une maison." | apertium -d . fra-oci_gascon
> > qu'Ei un ostau.
> >
> > Hèctor
> > ___
> > Apertium-stuff mailing list
> > Apertium-stuff@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/apertium-stuff
>
>
> ___
> Apertium-stuff mailing list
> Apertium-stuff@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/apertium-stuff
>
___
Apertium-stuff mailing list
Apertium-stuff@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/apertium-stuff


Re: [Apertium-stuff] Problem with letter case in interchunk (or after)

2021-10-09 Thread Daniel Swanson
You could set the case of the chunk pseudolemma or else append a tag
to it and then condition on that in postchunk.

On Sat, Oct 9, 2021 at 3:28 PM Hèctor Alòs i Font  wrote:
>
> In the interchunk stage I am adding a word, which happens to be very often at 
> the beginning of a sentence. So I face two issues. On the one hand, to put an 
> initial capital letter to the word I add, if needed, and, on the other hand, 
> to remove the initial capital letter from the following word, if needed too. 
> For the former, I can more or less figure out how to do it, although I have 
> my doubts. For the following word, I don't see how: in interchunk I don't 
> have access to the word itself, so I don't know whether it is capitalised or 
> not; in postchunk I only have access to the individual words, so I lack 
> context; and in postgeneration it doesn't seem to be possible to change words 
> from uppercase to lowercase.
>
> Does anyone have any suggestions?
>
> $ echo "C'est une maison." | apertium -d . fra-oci_gascon
> qu'Ei un ostau.
>
> Hèctor
> ___
> Apertium-stuff mailing list
> Apertium-stuff@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/apertium-stuff


___
Apertium-stuff mailing list
Apertium-stuff@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/apertium-stuff


[Apertium-stuff] Problem with letter case in interchunk (or after)

2021-10-09 Thread Hèctor Alòs i Font
In the interchunk stage I am adding a word, which happens to be very often
at the beginning of a sentence. So I face two issues. On the one hand, to
put an initial capital letter to the word I add, if needed, and, on the
other hand, to remove the initial capital letter from the following word,
if needed too. For the former, I can more or less figure out how to do it,
although I have my doubts. For the following word, I don't see how: in
interchunk I don't have access to the word itself, so I don't know whether
it is capitalised or not; in postchunk I only have access to the individual
words, so I lack context; and in postgeneration it doesn't seem to be
possible to change words from uppercase to lowercase.

Does anyone have any suggestions?

$ echo "C'est une maison." | apertium -d . fra-oci_gascon
qu'Ei un ostau.

Hèctor
___
Apertium-stuff mailing list
Apertium-stuff@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/apertium-stuff