PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/ictclas4j/src/org/ictclas4j/bean/TagContext.java

http://ictclas4j.googlecode.com/
Java | 51 lines | 35 code | 16 blank | 0 comment | 0 complexity | 7e3a5c3872f4d482191454705f6fae5d MD5 | raw file
 1package org.ictclas4j.bean;
 2
 3import org.apache.commons.lang.builder.ReflectionToStringBuilder;
 4
 5public class TagContext {
 6	private int key;// The key word
 7
 8	private int[][] adjoiningFreqTable;// The context array
 9
10	private int[] tagFreq;// The total number a tag appears
11
12	private int totalFreq;// The total number of all the tags
13
14	public int[][] getContextArray() {
15		return adjoiningFreqTable;
16	}
17
18	public void setContextArray(int[][] contextArray) {
19		this.adjoiningFreqTable = contextArray;
20	}
21
22 
23	public int getKey() {
24		return key;
25	}
26
27	public void setKey(int key) {
28		this.key = key;
29	}
30
31	public int[] getTagFreq() {
32		return tagFreq;
33	}
34
35	public void setTagFreq(int[] tagFreq) {
36		this.tagFreq = tagFreq;
37	}
38
39	public int getTotalFreq() {
40		return totalFreq;
41	}
42
43	public void setTotalFreq(int totalFreq) {
44		this.totalFreq = totalFreq;
45	}
46	public String toString() {
47
48		return ReflectionToStringBuilder.toString(this);
49
50	}
51}