Forum: CAT Tools Technical Help
Topic: New free & open source aligner (for Windows, OS X and linux)
Poster: FarkasAndras
Post title: codes
[quote]Fiona Paterson wrote:
Hello,
I've been using LF Aligner successfully for a while to align small numbers of files, but now I want to try batch align. I'm following Andras's instructions. I've never used perl before. I can batch align multiple files to produce an aligned text file, but when I try to produce a .tmx file, I am prompted to fill in details such as the language code for each language for every pair of files. Is there any way that I can enter one set of values to be used with every pair of files - i.e. is it possible to produce a .tmx unattended?
Here's an example of a command line I'm using:
LF_aligner_4.05.exe -f=t -l=fr,en -s=y -r=xn -t=y -i=m:\FR\13_0965_O_FRA.DOC,m:\EN\13_0965_O_EN.DOC
[/quote]
I don't have time for testing, so here goes based on memory and the readme:
You need to add the codes to the command. From the readme:
Codes - TMX language codes, separated by commas
so: LF_aligner_4.05.exe -f=t -l=fr,en -s=y -r=xn -t=y -c=fr-fr,en-gb
But this makes 100 tmx files if you align 100 file pairs (I think). For a single file, generate a single outfile. Readme:
Outfile - the full path of an output file, to which the aligned material is appended (useful when running more than one alignment). If you are using command line arguments for batch tasks and your files are not in the same folder, you should always specify an outfile, otherwise the output files will be scattered in various folders (wherever the first file of each of the file pairs is located).
So, omit the -t from the command and go:
so: LF_aligner_4.05.exe -f=t -l=fr,en -s=y -r=xn -o=m:\all_aligned.txt
Then use the tmx maker in other_tools to generate a tmx from the txt file.
Topic: New free & open source aligner (for Windows, OS X and linux)
Poster: FarkasAndras
Post title: codes
[quote]Fiona Paterson wrote:
Hello,
I've been using LF Aligner successfully for a while to align small numbers of files, but now I want to try batch align. I'm following Andras's instructions. I've never used perl before. I can batch align multiple files to produce an aligned text file, but when I try to produce a .tmx file, I am prompted to fill in details such as the language code for each language for every pair of files. Is there any way that I can enter one set of values to be used with every pair of files - i.e. is it possible to produce a .tmx unattended?
Here's an example of a command line I'm using:
LF_aligner_4.05.exe -f=t -l=fr,en -s=y -r=xn -t=y -i=m:\FR\13_0965_O_FRA.DOC,m:\EN\13_0965_O_EN.DOC
[/quote]
I don't have time for testing, so here goes based on memory and the readme:
You need to add the codes to the command. From the readme:
Codes - TMX language codes, separated by commas
so: LF_aligner_4.05.exe -f=t -l=fr,en -s=y -r=xn -t=y -c=fr-fr,en-gb
But this makes 100 tmx files if you align 100 file pairs (I think). For a single file, generate a single outfile. Readme:
Outfile - the full path of an output file, to which the aligned material is appended (useful when running more than one alignment). If you are using command line arguments for batch tasks and your files are not in the same folder, you should always specify an outfile, otherwise the output files will be scattered in various folders (wherever the first file of each of the file pairs is located).
So, omit the -t from the command and go:
so: LF_aligner_4.05.exe -f=t -l=fr,en -s=y -r=xn -o=m:\all_aligned.txt
Then use the tmx maker in other_tools to generate a tmx from the txt file.