com.wcohen.ss.expt
Class NGramBlocker

java.lang.Object
  extended by com.wcohen.ss.expt.Blocker
      extended by com.wcohen.ss.expt.TokenBlocker
          extended by com.wcohen.ss.expt.NGramBlocker
Direct Known Subclasses:
ClusterNGramBlocker

public class NGramBlocker
extends TokenBlocker

Finds all pairs that share a not-too-common character n-gram.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.wcohen.ss.expt.Blocker
Blocker.Pair
 
Field Summary
 
Fields inherited from class com.wcohen.ss.expt.TokenBlocker
tokenizer
 
Fields inherited from class com.wcohen.ss.expt.Blocker
clusterMode
 
Constructor Summary
NGramBlocker()
           
 
Method Summary
 int getMaxNGramSize()
           
 int getMinNGramSize()
           
 void setMaxNGramSize(int n)
           
 void setMinNGramSize(int n)
           
 java.lang.String toString()
           
 
Methods inherited from class com.wcohen.ss.expt.TokenBlocker
block, getMaxFraction, getPair, numCorrectPairs, setMaxFraction, size
 
Methods inherited from class com.wcohen.ss.expt.Blocker
countCorrectPairs, setClusterMode, setClusterMode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NGramBlocker

public NGramBlocker()
Method Detail

getMaxNGramSize

public int getMaxNGramSize()

getMinNGramSize

public int getMinNGramSize()

setMaxNGramSize

public void setMaxNGramSize(int n)

setMinNGramSize

public void setMinNGramSize(int n)

toString

public java.lang.String toString()
Overrides:
toString in class TokenBlocker