weka.deduping.metrics
Class TokenOccurrence

java.lang.Object
  extended byweka.deduping.metrics.TokenOccurrence

public class TokenOccurrence
extends java.lang.Object

A lightweight object for storing information about an occurrence of a token (a.k.a word, term) in a Document.


Field Summary
 int m_count
          The number of times it occurs in the Document
 StringReference m_stringRef
          A reference to the Document where it occurs
 
Constructor Summary
TokenOccurrence(StringReference stringRef, int count)
          Create an occurrence with these values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_stringRef

public StringReference m_stringRef
A reference to the Document where it occurs


m_count

public int m_count
The number of times it occurs in the Document

Constructor Detail

TokenOccurrence

public TokenOccurrence(StringReference stringRef,
                       int count)
Create an occurrence with these values