tokenoccurrence.java

来自「一个使用的搜索引擎」· Java 代码 · 共 21 行

JAVA
21
字号
package ir.vsr;/** A lightweight object for storing information about an occurrence of a token (a.k.a word, term) * in a Document. * * @author Ray Mooney */public class TokenOccurrence {    /** A reference to the Document where it occurs */    public DocumentReference docRef = null;    /** The number of times it occurs in the Document */    public int count = 0;    /** Create an occurrence with these values */    public TokenOccurrence(DocumentReference docRef, int count) {	this.docRef = docRef;	this.count = count;    }}

⌨️ 快捷键说明

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