public class ReVerbRelationDictionaryFilter extends FilterMapper<ChunkedExtraction>
VerbalRelationNormalizer class.
By default, this class searches the classpath for a file called
freq_rel.txt.gz and reads the relations with at least 20
distinct arg2s from it.| Modifier and Type | Field and Description |
|---|---|
static int |
defaultMinFreq |
| Constructor and Description |
|---|
ReVerbRelationDictionaryFilter()
Constructs a new dictionary filter using the data in the file
freq_rel.txt.gz, and loads all relations with at least 20
distinct arg2s. |
ReVerbRelationDictionaryFilter(InputStream in,
int minFreq)
Constructs a new dictionary filter from the data in
in. |
ReVerbRelationDictionaryFilter(int minFreq)
Constructs a new dictionary filter using the data in the file
freq_rel.txt.gz, which is found on the classpath. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
doFilter(ChunkedExtraction extr) |
doMappublic static final int defaultMinFreq
public ReVerbRelationDictionaryFilter(InputStream in, int minFreq) throws IOException
in. This
data should be in the tab-delimited format (#arg2, relation).in - the dictionary of relations and their number of distinct
arg2s.minFreq - the minimum number of distinct arg2s a relation must have to
be included.IOExceptionpublic ReVerbRelationDictionaryFilter(int minFreq)
throws IOException
freq_rel.txt.gz, which is found on the classpath.minFreq - the minimum number of distinct arg2s a relation must have to
be included.IOExceptionpublic ReVerbRelationDictionaryFilter()
throws IOException
freq_rel.txt.gz, and loads all relations with at least 20
distinct arg2s.IOExceptionpublic boolean doFilter(ChunkedExtraction extr)
doFilter in class FilterMapper<ChunkedExtraction>Copyright © 2010-2013 University of Washington CSE. All Rights Reserved.