Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6608491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:36:56+00:00 2026-05-25T19:36:56+00:00

I use a program called LF-Aligner that uses dictionaries to make parallel texts out

  • 0

I use a program called LF-Aligner that uses dictionaries to make parallel texts out of texts in different languages. I believe it’s written in Perl. It’s based on another program called Hunalign.

When I used it a few months earlier, it worked perfectly. It got accidentally deleted, I recently reinstalled it, but now I just get the error message:

Aligning...

Dictionary used by Hunalign: es-en.dic

Can't spawn "cmd.exe": No such file or directory at script/LF_aligner_2011_06_29_multi.pl line 1856.
Use of uninitialized value $alignedfilesize in numeric eq (==) at script/LF_aligner_2011_06_29_multi.pl line 1864.

-------------------------------------------------

Align failed (probably due to one file being empty or very short). ABORTING...

I can’t understand it. Could it be a conflict with something I’ve installed in the meantime? Or something I’ve deleted, maybe?

(The problem is not due to “one file being empty or very short“, as the program suggests. The files are just fine.)

EDIT: Here is the log file:

Program: LF aligner, version: 2.56, OS: Windows, launched: 2011/09/28, 04:13:01

Setup: filetype_def: t; filetype_prompt: y; l1_def: en; l2_def: hu; l1_prompt: y; l2_prompt: y; segmenttext_def: y; segmenttext_prompt: y=; cleanup_def: y; cleanup_prompt: y; review_def: x; review_prompt: y; create_tmx_def: y; create_tmx_prompt: y; l1_code_def: EN-GB; l2_code_def: HU; l1_code_prompt: y; l2_code_prompt: y; creationdate_prompt: y; creationid_def: ; creationid_prompt: y; ask_master_TM: n; chopmode: 0; tmxnote_def: ; tmxnote_prompt: y; pdfmode: y

GUI on
filetype: t
Input file 1: kakeen.rtf (C:/Users/jippi/Desktop/qewr/kakeen.rtf)
Input file 2: kaketo.rtf (C:/Users/jippi/Desktop/qewr/kaketo.rtf)
Input file sizes: 1375014 bytes 1375014 bytes
Converting rtf files to txt; AbiWord binary: C:\Program Files (x86)\LF_aligner_2.56\aligner\scripts\abiword\bin\AbiWord.exe
Converting rtf files to txt; AbiWord binary: C:\Program Files (x86)\LF_aligner_2.56\aligner\scripts\abiword\bin\AbiWord.exe
File sizes after conversion to txt: 1074504 bytes 1074504 bytes
Initial stats: 
- en: 6091 segments,    196644 words,   1037434 chars
- en: 6091 segments,    196644 words,   1037434 chars
Segmentation: y

(The problem occurs when I use txt-files aswell.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:36:56+00:00Added an answer on May 25, 2026 at 7:36 pm

    I downloaded the application in question. It is a Perl application packed using pp.

    To see the code in question, unzip the downloaded file and then extract the contents of the executable using

    E:\Home\Downloads\LF_aligner_2.56_win\aligner> unzip LF_aligner_2.56.exe -d some-temp-dir

    You’ll find the file

    some-temp-dir\script\LF_aligner_2011_06_29_multi.pl

    Line 1856 is:

    system ("\"$hunalign_bin\" -text \"$scriptpath/scripts/hunalign/data/$hunalign_dic\" \"$folder/$file1\" \"$folder/$file2\" > \"$folder/aligned_${alignfilename}.txt\"");

    which is messy to say the least. The program does not check if the system succeeded. Because the system fails, the subsequent attempt to read the size of the output file also fails (note the warning) and subsequently, the program realizes something went wrong:

    # SEE IF ALIGNED FILE IS OK, ABORT IF NOT
    
    my $alignedfilesize = -s "$folder/aligned_${alignfilename}.txt";
    if ($alignedfilesize == 0) {
        print "\n\n-------------------------------------------------";
        print "\n\nAlign failed (probably due to one file being empty or very short). ABORTING...\n\n";
        print LOG "\nAligned file empty, aborted.";
    

    None of this solves your problem, but gives you something to investigate if you feel like it. At the very least, you might want to notify the author of the program.

    The way the author handles paths is too messy for anyone else to feel really motivated to investigate.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my Visual C++ program I use a custom operator new that uses malloc()
There's a program called getID3 (written in php) that copies all the id3 tags
First a bit about the environment: We use a program called Clearview to manage
The problem: We use a program written by our biggest customer to receive orders,
I'm interested in any common routine/procedures/methods that you might use in you Program.cs when
I have a test program called ftest. It loads .so files that contain tests
I have found a program that can make you save space by hardlinking files
I have a sftp program called transmit. I use it to access a sftp
I am forced to use a dumb-as-nails Windows program (called IDCentre, made by Datacard,
My program use UdpClient to try to receive 27 responses from 27 hosts. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.