-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathGraphX.java
More file actions
33 lines (28 loc) · 1.01 KB
/
GraphX.java
File metadata and controls
33 lines (28 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package graph;
import edu.illinois.cs.cogcomp.core.datastructures.textannotation.Constituent;
import edu.illinois.cs.cogcomp.core.datastructures.textannotation.TextAnnotation;
import edu.illinois.cs.cogcomp.sl.core.IInstance;
import structure.Problem;
import structure.QuantSpan;
import structure.Schema;
import java.util.List;
public class GraphX implements IInstance {
public int problemId;
public TextAnnotation ta;
public List<QuantSpan> quantities;
public List<Constituent> posTags;
public List<Constituent> chunks;
public List<String> lemmas;
public Schema schema;
public List<Integer> relevantQuantIndices;
public GraphX(Problem prob, List<Integer> relevantQuantIndices) {
this.problemId = prob.id;
this.ta = prob.ta;
this.quantities = prob.quantities;
this.posTags = prob.posTags;
this.chunks = prob.chunks;
this.schema = prob.schema;
this.lemmas = prob.lemmas;
this.relevantQuantIndices = relevantQuantIndices;
}
}