⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stringreference.java

📁 wekaUT是 university texas austin 开发的基于weka的半指导学习(semi supervised learning)的分类器
💻 JAVA
字号:
package weka.deduping.metrics;import java.io.*;/** A simple data structure for storing a reference to a document file *  that includes information on the length of its document vector. *  The goal is to have a lightweight object to store in an inverted index *  without having to store an entire Document object. * * @author Ray Mooney */public class StringReference {  /** The referenced string. */  public String m_string = null;  /** The corresponding HashMapVector */  public HashMapVector m_vector = null;  /** The length of the corresponding Document vector. */  public double m_length = 0.0;    public StringReference(String string, HashMapVector vector, double length) {    m_string = string;    m_vector = vector;    m_length = length;  }  /** Create a reference to this document, initializing its length to 0 */  public StringReference(String string, HashMapVector vector) {    this(string, vector, 0.0);  }  public String toString() {    return m_string;  }}

⌨️ 快捷键说明

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