public class AbbreviationsBlocker extends Blocker
java com.wcohen.ss.expt.MatchExpt AbbreviationsBlocker AbbreviationAlignment train/abbvAlign_strings.txt -summarize Blocker.Pair| Modifier and Type | Field and Description |
|---|---|
protected Tokenizer |
tokenizer |
clusterMode| Constructor and Description |
|---|
AbbreviationsBlocker() |
AbbreviationsBlocker(Tokenizer tokenizer,
double maxFraction) |
| Modifier and Type | Method and Description |
|---|---|
void |
block(MatchData data)
Load matchdata and prepare it for production of candidate pairs.
|
double |
getMaxFraction() |
Blocker.Pair |
getPair(int i)
Get the i-th candidate pair, as produced from most recently block()-ed data
|
int |
numCorrectPairs()
Return total number of correct pairs in the dataset.
|
void |
setMaxFraction(double maxFraction) |
int |
size()
Return number of candidate pairs, as produced from most recently block()-ed data
|
String |
toString() |
countCorrectPairs, setClusterMode, setClusterModeprotected Tokenizer tokenizer
public AbbreviationsBlocker(Tokenizer tokenizer, double maxFraction)
public AbbreviationsBlocker()
public double getMaxFraction()
public void setMaxFraction(double maxFraction)
public void block(MatchData data)
Blockerpublic int size()
Blockerpublic Blocker.Pair getPair(int i)
Blockerpublic int numCorrectPairs()
BlockernumCorrectPairs in class BlockerCopyright © 2016. All rights reserved.