From ad418214fe3b3fcd33d81225eb3d3fb08b67f88a Mon Sep 17 00:00:00 2001 From: desaicwtf Date: Mon, 28 Jun 2010 23:14:21 +0000 Subject: add draft version of POS induction with HMM and L1 Linf constraints git-svn-id: https://ws10smt.googlecode.com/svn/trunk@47 ec762483-ff6d-05da-a07a-a48fb63a330f --- .../prjava/src/test/IntDoublePair.java | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 gi/posterior-regularisation/prjava/src/test/IntDoublePair.java (limited to 'gi/posterior-regularisation/prjava/src/test/IntDoublePair.java') diff --git a/gi/posterior-regularisation/prjava/src/test/IntDoublePair.java b/gi/posterior-regularisation/prjava/src/test/IntDoublePair.java new file mode 100644 index 00000000..3f9f0ad7 --- /dev/null +++ b/gi/posterior-regularisation/prjava/src/test/IntDoublePair.java @@ -0,0 +1,23 @@ +package test; + +public class IntDoublePair implements Comparable{ + double val; + int idx; + public int compareTo(Object o){ + if(o instanceof IntDoublePair){ + IntDoublePair pair=(IntDoublePair)o; + if(pair.val>val){ + return 1; + } + if(pair.val