From 7b61f71be28539f815a171ba84baeaa90f863e88 Mon Sep 17 00:00:00 2001 From: "trevor.cohn" Date: Fri, 23 Jul 2010 19:26:17 +0000 Subject: Parallelised VB-EM git-svn-id: https://ws10smt.googlecode.com/svn/trunk@384 ec762483-ff6d-05da-a07a-a48fb63a330f --- .../prjava/src/phrase/PhraseContextObjective.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gi/posterior-regularisation/prjava/src/phrase/PhraseContextObjective.java') diff --git a/gi/posterior-regularisation/prjava/src/phrase/PhraseContextObjective.java b/gi/posterior-regularisation/prjava/src/phrase/PhraseContextObjective.java index 06a9f8cb..5947c4be 100644 --- a/gi/posterior-regularisation/prjava/src/phrase/PhraseContextObjective.java +++ b/gi/posterior-regularisation/prjava/src/phrase/PhraseContextObjective.java @@ -277,7 +277,10 @@ public class PhraseContextObjective extends ProjectedObjective } // rethrow the exception if (failure != null) + { + pool.shutdownNow(); throw new RuntimeException(failure); + } } double[] tmp = newPoint; -- cgit v1.2.3