word.java

来自「重新写的海量分词研究版的JNI程序」· Java 代码 · 共 32 行

JAVA
32
字号
package hl;

public class Word {
	  private String word;
	  private String attribute;
	  public Word() {
	  }

	  public Word(String word,String attribute){
	    this.word = word;
	    this.attribute = attribute;
	  }

	  public String getWord() {
	    return word;
	  }
	  public void setWord(String word) {
	    this.word = word;
	  }
	  public String getAttribute() {
	    return attribute;
	  }
	  public void setAttribute(String attribute) {
	    this.attribute = attribute;
	  }

	  public String toString(){
	      return this.word+"/"+this.attribute;
	  }

	}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?