Kevin Brubeck Unhammer <[email protected]> čálii: >> >> cat file.txt | sed -r 's/$/\n\n\n\n\n\n\n\n\n\n/' | apertium -n -d >> ./apertium-tat tat-tagger | cg-proc ./apertium-tat/dev/mansur.bin > file.txt > > Does tat-tagger without cg-proc do it too?
That is, you're running the tat-tagger pipeline (what's in
modes/tat-tagger.mode) inside the deformatted output, but then you run
cg-proc on the reformatted output. I don't know if this is the reason
for line-merging error, but it will lead to errors. You should instead
just
cp apertium-tat/modes/tat-tagger.mode
apertium-tat/modes/tat-tagger-devcg.mode
and edit apertium-tat/modes/tat-tagger-devcg.mode and add
"| cg-proc dev/mansur.bin" to the pipeline, and use
apertium -n -d ./apertium-tat tat-tagger-devcg < input.txt > output.txt
signature.asc
Description: PGP signature
_______________________________________________ Apertium-stuff mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/apertium-stuff
