Send Moses-support mailing list submissions to
moses-support@mit.edu
To subscribe or unsubscribe via the World Wide Web, visit
http://mailman.mit.edu/mailman/listinfo/moses-support
or, via email, send a message with subject or body 'help' to
moses-support-request@mit.edu
You can reach the person managing the list at
moses-support-owner@mit.edu
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Moses-support digest..."
Today's Topics:
1. Re: Interpolation Script hangs (Fathima Farhath Farook)
----------------------------------------------------------------------
Message: 1
Date: Tue, 13 Jun 2017 07:57:56 +0530
From: Fathima Farhath Farook <fathimafarhath@gmail.com>
Subject: Re: [Moses-support] Interpolation Script hangs
To: Allen Smith <allen.w.smith1@gmail.com>
Cc: moses-support@mit.edu
Message-ID:
<CAP6fBzA8QwtbH9q6rkkYiNVC1B9wxq_BB5N_Hiaix27nh_OpUw@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Hi Allen,
1. nothing is shown in output after that. even after days.
2 But still there is matching process running.
AS i mentioned before, the problem was with 'open3' command.
(when i tried executing the 'interpolate-lm.perl' mannually, it worked fine
- /home/farhath/SRILM/bin/i686-m64/compute-best-mix iplm.32738.0
iplm.32738.1)
so at last, I replaced the body of method 'saferun3' as follows:
my ($stdout, $stderr, $success, $exit_code) = capture_exec( @_ );
if ($exit_code == -1) {
print STDERR "Failed to execute: @_\n $!\n";
exit(1);
}
elsif ($exit_code & 127) {
printf STDERR "Execution of: @_\n died with signal %d, %s
coredump\n",
($exit_code & 127), ($exit_code & 128) ? 'with' : 'without';
exit(1);
}
else {
my $exitcode = $exit_code >> 8;
print STDERR "Exit code: $exitcode\n" if $exitcode;
return ( $stdout, $stderr, $exitcode );
}
----------------
this uses capture_exec - use IO::CaptureOutput qw/capture_exec/;)
And this worked fine.
On Mon, Jun 12, 2017 at 7:20 PM, Allen Smith <allen.w.smith1@gmail.com>
wrote:
> What does it say after it outputs "Executing:"? Is there a matching
> process in the output from ps -ef?
>
> -Allen (Allen W. Smith, Ph.D.)
>
> On Fri, Jun 9, 2017 at 4:57 AM, Fathima Farhath Farook <
> fathimafarhath@gmail.com> wrote:
>
>> Dear All,
>>
>> I tried to interpolate multiple LMs using EMS multiple times(Running on
>> CentOS). But it failed. After analysing I noticed that the problem was in
>> the "interpolate-lm.perl"
>>
>> the system gets hang at -
>>
>> my $pid = open3($wtr, $rdr, $err, @_);
>>
>> Does anyone have any clue ?
>>
>> Thanks in advance.
>>
>>
>>
>> --
>> Regards,
>>
>> Farhath Farook
>>
>>
>> <http://farhathforever.blogspot.com/>
>>
>> _______________________________________________
>> Moses-support mailing list
>> Moses-support@mit.edu
>> http://mailman.mit.edu/mailman/listinfo/moses-support
>>
>>
>
--
Regards,
Farhath Farook
<http://farhathforever.blogspot.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20170612/cd2d3037/attachment-0001.html
------------------------------
_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support
End of Moses-support Digest, Vol 128, Issue 17
**********************************************
Subscribe to:
Post Comments (Atom)
0 Response to "Moses-support Digest, Vol 128, Issue 17"
Post a Comment