Skip to content

Commit 2aaf55c

Browse files
committed
Change GurobiHook usage to the OJalgoHook ILPSolver in EntityRelation
example
1 parent 9db0ff5 commit 2aaf55c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lbjava-examples/src/main/lbj/EntityRelation.lbj

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ package edu.illinois.cs.cogcomp.lbjava.examples.entityRelation;
33
import java.util.List;
44
import edu.illinois.cs.cogcomp.lbjava.examples.entityRelation.datastruct.*;
55
import edu.illinois.cs.cogcomp.lbjava.examples.entityRelation.Conll04_RelationReaderNew;
6-
import edu.illinois.cs.cogcomp.lbjava.infer.GurobiHook;
76

8-
import edu.illinois.cs.cogcomp.lbjava.infer.GurobiHook;
7+
import edu.illinois.cs.cogcomp.lbjava.infer.OJalgoHook;
98

109
discrete% EntityFeatures(ConllRawToken t) <- {
1110
sense t.POS;
@@ -116,12 +115,12 @@ inference JointER head ConllRelation t {
116115
ConllRawToken e { return e.getRelation(); }
117116
// normalizedby new Softmax()
118117
subjectto { @PersonWorkFor(t) /\ @OrganizationWorkFor(t); }
119-
with new ILPInference(new GurobiHook())
118+
with new ILPInference(new OJalgoHook())
120119
}
121120

122121
discrete RelArgsClassifier(ConllRelation r) <-
123122
JointER(work_forClassifier)
124123
discrete Arg_pClassifier(ConllRawToken t) <-
125124
JointER(PersonClassifier)
126125
discrete ArgOClassifier (ConllRawToken t) <-
127-
JointER(OrganizationClassifier)
126+
JointER(OrganizationClassifier)

0 commit comments

Comments
 (0)