1   package eu.fbk.knowledgestore.populator.naf;
2   
3   public class statistics {
4   
5       private int entity = 0, coref = 0, timex = 0, srl = 0, objectMention = 0,
6               timeMention = 0, eventMention = 0, rolewithEntity = 0, participationMention = 0,
7               rolewithoutEntity = 0, factuality = 0,role=0, corefMentionEvent=0,corefMentionNotEvent=0
8               , clinkMention=0,tlinkMention=0, clinkMentionDiscarded=0,tlinkMentionDiscarded=0,tlinkMentionsEnriched=0;
9       
10      public int getClinkMention() {
11  		return clinkMention;
12  	}
13  
14  
15  
16  	public int getTlinkMentionsEnriched() {
17  		return tlinkMentionsEnriched;
18  	}
19  
20  
21  
22  	public void setTlinkMentionsEnriched(int tlinkMentionsEnriched) {
23  		this.tlinkMentionsEnriched = tlinkMentionsEnriched;
24  	}
25  
26  
27  
28  	public void setClinkMention(int clinkMention) {
29  		this.clinkMention = clinkMention;
30  	}
31  
32  
33  
34  	public int getTlinkMention() {
35  		return tlinkMention;
36  	}
37  
38  
39  
40  	public void setTlinkMention(int tlinkMention) {
41  		this.tlinkMention = tlinkMention;
42  	}
43  
44  
45  
46  	public int getClinkMentionDiscarded() {
47  		return clinkMentionDiscarded;
48  	}
49  
50  
51  
52  	public void setClinkMentionDiscarded(int clinkMentionDiscarded) {
53  		this.clinkMentionDiscarded = clinkMentionDiscarded;
54  	}
55  
56  
57  
58  	public int getTlinkMentionDiscarded() {
59  		return tlinkMentionDiscarded;
60  	}
61  
62  
63  
64  	public void setTlinkMentionDiscarded(int tlinkMentionDiscarded) {
65  		this.tlinkMentionDiscarded = tlinkMentionDiscarded;
66  	}
67  
68  
69  
70  	public int getCorefMentionEvent() {
71          return corefMentionEvent;
72      }
73  
74  
75      
76      public void setCorefMentionEvent(int corefMentionEvent) {
77          this.corefMentionEvent = corefMentionEvent;
78      }
79  
80  
81      
82      public int getCorefMentionNotEvent() {
83          return corefMentionNotEvent;
84      }
85  
86  
87      
88      public void setCorefMentionNotEvent(int corefMentionNotEvent) {
89          this.corefMentionNotEvent = corefMentionNotEvent;
90      }
91  
92      private int PER = 0, LOC = 0, ORG = 0, PRO = 0, fin = 0, mix = 0, no_mapping = 0;
93  
94      public int getRole() {
95          return role;
96      }
97  
98      
99      public void setRole(int role) {
100         this.role = role;
101     }
102 
103     public String getStats(){
104         String statistics = "";
105         statistics += "\nKS stats all("
106                 + (objectMention + timeMention + eventMention + participationMention)
107                 + "):\nObject mentions:" + (objectMention) + " , PER(" + PER + "), LOC(" + LOC
108                 + "), ORG(" + ORG + "), PRO(" + PRO + "), fin(" + fin + "), mix(" + mix
109                 + "), no-mapping(" + no_mapping + ")" + "\nTime mentions: " + timeMention
110                 + "\nEvent mentions: " + (eventMention)
111                 + "\nParticipation mentions: " + participationMention
112                 +"\nTlinks mentions: "+tlinkMention+" discarded("+tlinkMentionDiscarded+") enriched("+tlinkMentionsEnriched+") "
113                  +"\nClinks mentions: "+clinkMention+" discarded("+clinkMentionDiscarded+")";
114         statistics += ("\n\npopulator stats:\nEntity:" + entity + "\nCoreference: " + coref
115                 + " (event: "+getCorefMentionEvent()+" , not-event: "+getCorefMentionNotEvent()+" )\nSrl:" + srl);
116        // statistics += ("\nRole:" + role);
117         statistics += ("\nRole with entity: " + rolewithEntity+" (discarded: " + rolewithoutEntity + ")");
118         statistics += ("\nTimex:"
119                 + timeMention + "\nFactuality:" + factuality + "\n");
120         statistics+= "=========\n";
121         return statistics;
122     }
123     
124     public int getEntity() {
125         return entity;
126     }
127     
128     public void setEntity(int entity) {
129         this.entity = entity;
130     }
131     
132     public int getCoref() {
133         return coref;
134     }
135     
136     public void setCoref(int coref) {
137         this.coref = coref;
138     }
139     
140     public int getTimex() {
141         return timex;
142     }
143     
144     public void setTimex(int timex) {
145         this.timex = timex;
146     }
147     
148     public int getSrl() {
149         return srl;
150     }
151     
152     public void setSrl(int srl) {
153         this.srl = srl;
154     }
155     
156     public int getObjectMention() {
157         return objectMention;
158     }
159     
160     public void setObjectMention(int objectMention) {
161         this.objectMention = objectMention;
162     }
163     
164     public int getTimeMention() {
165         return timeMention;
166     }
167     
168     public void setTimeMention(int timeMention) {
169         this.timeMention = timeMention;
170     }
171     
172     public int getEventMention() {
173         return eventMention;
174     }
175     
176     public void setEventMention(int eventMention) {
177         this.eventMention = eventMention;
178     }
179     
180     public int getRolewithEntity() {
181         return rolewithEntity;
182     }
183     
184     public void setRolewithEntity(int rolewithEntity) {
185         this.rolewithEntity = rolewithEntity;
186     }
187     
188     public int getParticipationMention() {
189         return participationMention;
190     }
191     
192     public void setParticipationMention(int participationMention) {
193         this.participationMention = participationMention;
194     }
195     
196     public int getRolewithoutEntity() {
197         return rolewithoutEntity;
198     }
199     
200     public void setRolewithoutEntity(int rolewithoutEntity) {
201         this.rolewithoutEntity = rolewithoutEntity;
202     }
203     
204     public int getFactuality() {
205         return factuality;
206     }
207     
208     public void setFactuality(int factuality) {
209         this.factuality = factuality;
210     }
211     
212     public int getPER() {
213         return PER;
214     }
215     
216     public void setPER(int pER) {
217         PER = pER;
218     }
219     
220     public int getLOC() {
221         return LOC;
222     }
223     
224     public void setLOC(int lOC) {
225         LOC = lOC;
226     }
227     
228     public int getORG() {
229         return ORG;
230     }
231     
232     public void setORG(int oRG) {
233         ORG = oRG;
234     }
235     
236     public int getPRO() {
237         return PRO;
238     }
239     
240     public void setPRO(int pRO) {
241         PRO = pRO;
242     }
243     
244     public int getFin() {
245         return fin;
246     }
247     
248     public void setFin(int fin) {
249         this.fin = fin;
250     }
251     
252     public int getMix() {
253         return mix;
254     }
255     
256     public void setMix(int mix) {
257         this.mix = mix;
258     }
259     
260     public int getNo_mapping() {
261         return no_mapping;
262     }
263     
264     public void setNo_mapping(int no_mapping) {
265         this.no_mapping = no_mapping;
266     }
267 
268    
269 
270 }