?? pos.java
字號:
package org.ictclas4j.bean;
import org.apache.commons.lang.builder.ReflectionToStringBuilder;
/**
* 詞性標記
*
* @author sinboy
* @since 2007.5.22
*
*/
public class POS {
private int tag;// 詞性標記,如:nr,高8位代表詞性的第一個字符,低8位代表詞的第二個字符
private double freq;// 該詞性出現的頻率
private int prev;//前一個詞的N個詞性中和該詞性最匹配的那一個(下標位置)
private boolean isBest;
public POS(){
}
public POS(int pos,double value){
this.tag=pos;
this.freq=value;
}
public int getTag() {
return tag;
}
public void setTag(int pos) {
this.tag = pos;
}
public double getFreq() {
return freq;
}
public void setFreq(double value) {
this.freq = value;
}
public int getPrev() {
return prev;
}
public void setPrev(int prevPos) {
this.prev = prevPos;
}
public boolean isBest() {
return isBest;
}
public void setBest(boolean isBest) {
this.isBest = isBest;
}
public String toString() {
return ReflectionToStringBuilder.toString(this);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -