No tempdir on pipeline.pl

21 views
Skip to first unread message

Reza Lesmana

unread,
Jun 9, 2015, 9:56:37 PM6/9/15
to joshua_d...@googlegroups.com
Hi devs,

I'm working on my translation system using Joshua. After preparing my data, and start the training process, I hit an error during Thrax process.

Here is the error log during Thrax process.

[thrax-input-file] rebuilding...
  dep=/home/rezalesmana/thesis/working_directory/data/train/corpus.en [CHANGED]
  dep=/home/rezalesmana/thesis/working_directory/data/train/corpus.id [CHANGED]
  dep=alignments/training.align [CHANGED]
  dep=/home/rezalesmana/thesis/working_directory/data/train/thrax-input-file [NOT FOUND]
  cmd=paste /home/rezalesmana/thesis/working_directory/data/train/corpus.en /home/rezalesmana/thesis/working_directory/data/train/corpus.id alignments/training.align | perl -pe 's/\t/ ||| /g' | grep -v '()' | grep -v '||| \+$' > /home/rezalesmana/thesis/working_directory/data/train/thrax-input-file
  took 1 seconds (1s)
Undefined subroutine &main::tempdir called at /home/rezalesmana/joshua-v6.0.3/bin/pipeline.pl line 1796.

I've tried to rerun it, but it seems not finding the tempdir function on the pipeline.pl

Can anyone help me? Thanks a lot before. FYI, this is joshua v6.0.3.

Matt Post

unread,
Jun 9, 2015, 11:04:21 PM6/9/15
to joshua_d...@googlegroups.com
Hi,

In $JOSHUA/bin/pipeline.pl, change the line

use File::Temp qw[:mktemp];

to

use File::Temp qw[:mktemp tempdir];

matt


--
You received this message because you are subscribed to the Google Groups "Joshua Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joshua_develop...@googlegroups.com.
To post to this group, send email to joshua_d...@googlegroups.com.
Visit this group at http://groups.google.com/group/joshua_developers.
For more options, visit https://groups.google.com/d/optout.

Reza Lesmana

unread,
Jun 9, 2015, 11:44:13 PM6/9/15
to joshua_d...@googlegroups.com
Thanks a lot, Matt. It seems to be working.

Still long way to go. Hope everything works great. :)

Regards,
Reza Lesmana

--
You received this message because you are subscribed to a topic in the Google Groups "Joshua Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/joshua_developers/m0RsGCkgbo8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to joshua_develop...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages