seggraph.java
来自「基于中科院的ICTCLAS实现中文分词系统 开发工具是JAVA.经测试,效果很好」· Java 代码 · 共 94 行
JAVA
94 行
package com.gftech.ictclas4j.bean;
import org.apache.commons.lang.builder.ReflectionToStringBuilder;
/**
* 分词图表
*
* @author sinboy
*
*/
public class SegGraph {
private int col;
private int row;
private double value;
private int pos;
private int len;
private String word;
public SegGraph() {
}
public SegGraph(int row, int col, double value,int pos, String word) {
this.row=row;
this.col=col;
this.value=value;
this.pos=pos;
this.word=word;
if(word!=null)
this.len=word.getBytes().length;
}
public int getCol() {
return col;
}
public void setCol(int col) {
this.col = col;
}
public int getLen() {
return len;
}
public void setLen(int len) {
this.len = len;
}
public int getPos() {
return pos;
}
public void setPos(int pos) {
this.pos = pos;
}
public int getRow() {
return row;
}
public void setRow(int row) {
this.row = row;
}
public double getValue() {
return value;
}
public void setValue(double value) {
this.value = value;
}
public String getWord() {
return word;
}
public void setWord(String word) {
this.word = word;
if(word!=null)
this.len=word.getBytes().length;
}
public String toString() {
return ReflectionToStringBuilder.toString(this);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?