1 package eu.fbk.shell.mdfsa.data.structures;
2
3 import java.io.Serializable;
4 import java.util.ArrayList;
5
6 public class DatasetInstance implements Serializable {
7
8 private static final long serialVersionUID = 1L;
9
10 private String instanceId;
11 private ArrayList<String> features;
12 private String instanceOriginalText;
13
14
15
16
17
18
19 private int polarity;
20 private double inferredPolarity;
21 private String domain;
22 private String inferredDomain;
23 private SentenceStructuredRepresentation ssr;
24
25 public DatasetInstance() {}
26
27 public DatasetInstance(ArrayList<String> features, int polarity) {
28 this.features = features;
29 this.polarity = polarity;
30 }
31
32 public DatasetInstance(String id, ArrayList<String> features, int polarity) {
33 this.instanceId = id;
34 this.features = features;
35 this.polarity = polarity;
36 this.inferredPolarity = 0.0;
37 }
38
39 public ArrayList<String> getFeatures() {
40 return this.features;
41 }
42
43 public void setPolarity(int polarity) {
44 this.polarity = polarity;
45 }
46
47 public int getPolarity() {
48 return this.polarity;
49 }
50
51 public String getInstanceId() {
52 return instanceId;
53 }
54
55 public void setInstanceId(String instanceId) {
56 this.instanceId = instanceId;
57 }
58
59 public double getInferredPolarity() {
60 return this.inferredPolarity;
61 }
62
63 public void setInferredPolarity(double inferredPolarity) {
64 this.inferredPolarity = inferredPolarity;
65 }
66
67 public String getDomain() {
68 return this.domain;
69 }
70
71 public void setDomain(String domain) {
72 this.domain = domain;
73 }
74
75 public String getInferredDomain() {
76 return inferredDomain;
77 }
78
79 public void setInferredDomain(String inferredDomain) {
80 this.inferredDomain = inferredDomain;
81 }
82
83 public String getInstanceOriginalText() {
84 return instanceOriginalText;
85 }
86
87 public void setInstanceOriginalText(String instanceOriginalText) {
88 this.instanceOriginalText = instanceOriginalText;
89 }
90
91 public SentenceStructuredRepresentation getSentenceStructuredRepresentation() {
92 return ssr;
93 }
94
95 public void setSentenceStructuredRepresentation(SentenceStructuredRepresentation ssr) {
96 this.ssr = ssr;
97 }
98 }