Package cc.mallet.extract
Class PunctuationIgnoringComparator
- java.lang.Object
-
- cc.mallet.extract.PunctuationIgnoringComparator
-
- All Implemented Interfaces:
FieldComparator
public class PunctuationIgnoringComparator extends java.lang.Object implements FieldComparator
Created: Nov 23, 2004- Version:
- $Id: PunctuationIgnoringComparator.java,v 1.1 2007/10/22 21:37:44 mccallum Exp $
- Author:
-
-
-
Constructor Summary
Constructors Constructor Description PunctuationIgnoringComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(java.lang.String fieldVal1, java.lang.String fieldVal2)
Returns true if the given two slot fillers match.void
setPunctuationPattern(java.util.regex.Pattern punctuationPattern)
-
-
-
-
Method Detail
-
setPunctuationPattern
public void setPunctuationPattern(java.util.regex.Pattern punctuationPattern)
-
matches
public boolean matches(java.lang.String fieldVal1, java.lang.String fieldVal2)
Description copied from interface:FieldComparator
Returns true if the given two slot fillers match.- Specified by:
matches
in interfaceFieldComparator
-
-