Looking at what apertium-init generates, it looks like configure.ac is fine
(covered by monolingual) so you just need to change Makefile.am. You can
find the relevant changes by searching
https://github.com/apertium/apertium-init/blob/master/bilingual-module/Makefile.am
for rlx

Looks like you need to add

$(PREFIX1).rlx.bin: $(AP_SRC1)/apertium-$(LANG1).$(LANG1).rlx
cg-comp $< $@

somewhere (add a tab before cg-comp)

and $(PREFIX1).rlx.bin to the list at the top

On Mon, Jan 4, 2021 at 12:45 PM Juan Pablo <jpm...@unizar.es> wrote:

> Hi Apertiumers,
>
> I'm preparing a new release of Spanish-Aragonese pair. Last release in
> the spa->arg direction relied solely on the statistical tagger
> (spa-arg.prob), but a number of disambiguation problems are solved when
> applying before the CG in apertium-spa, so I would like to include it in
> the default mode (only in spa -> arg direction).
>
> I would need to change the configuration files so that, when compiling
> apertium-spa-arg, it creates a spa-arg.mode with a pipeline like this:
>
> lt-proc -w '/media/apertium/apertium-spa-arg/spa-arg.automorf.bin' |
> cg-proc -w '/media/apertium/apertium-spa-cat/spa-cat.rlx.bin' |
> apertium-tagger -g $2 '/media/apertium/apertium-spa-arg/spa-arg.prob' |
> apertium-pretransfer| lt-proc -b
> '/media/apertium/apertium-spa-arg/spa-arg.autobil.bin' | lrx-proc
> '/media/apertium/apertium-spa-arg/spa-arg.autolex.bin' |
> apertium-transfer -b
> '/media/apertium/apertium-spa-arg/apertium-spa-arg.spa-arg.t1x'
> '/media/apertium/apertium-spa-arg/spa-arg.t1x.bin' | lt-proc $1
> '/media/apertium/apertium-spa-arg/spa-arg.autogen.bin' | lt-proc -p
> '/media/apertium/apertium-spa-arg/spa-arg.autopgen.bin'
>
> I guess I need to change the file modes.xml (I can do that myself), but
> I don't know which other files need to be modified (and how).
>
> Thank you in advance!
>
> Juan Pablo
>
>
> --
> El software de antivirus Avast ha analizado este correo electrónico en
> busca de virus.
> https://www.avast.com/antivirus
>
>
>
> _______________________________________________
> 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

Reply via email to