|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.ephyra.answerselection.filters.Filter
info.ephyra.answerselection.filters.PredicateExtractionFilter
public class PredicateExtractionFilter
Extracts predicates which are similiar to those in the question from documents.
This class extends the class Filter.
| Field Summary | |
|---|---|
private static int |
MAX_SENT_LENGTH_CHARS
Maximum length of a sentence in characters to be considered for predicate extraction. |
private static int |
MAX_SENT_LENGTH_TOKENS
Maximum length of a sentence in tokens to be considered for predicate extraction. |
private static int |
MAX_SENTENCES
Maximum number of sentences that are annotated with predicate-argument structures. |
| Constructor Summary | |
|---|---|
PredicateExtractionFilter()
|
|
| Method Summary | |
|---|---|
Result[] |
apply(Result[] results)
Extracts relevant predicates from documents. |
private boolean |
checkSentence(Result sentence)
Decides if predicates should be extracted from this sentence. |
private java.util.Map<java.lang.String,java.lang.String[]> |
extractNes(java.lang.String sentence,
java.lang.String[] answerTypes)
Extracts NEs of the expected answer types from a sentence. |
private java.util.Hashtable<java.lang.String[],java.lang.Double> |
getAllVerbForms(Predicate[] ps)
Gets all forms of the verbs and expansions of predicates with missing arguments. |
| Methods inherited from class info.ephyra.answerselection.filters.Filter |
|---|
apply |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int MAX_SENTENCES
private static final int MAX_SENT_LENGTH_CHARS
private static final int MAX_SENT_LENGTH_TOKENS
| Constructor Detail |
|---|
public PredicateExtractionFilter()
| Method Detail |
|---|
private java.util.Map<java.lang.String,java.lang.String[]> extractNes(java.lang.String sentence,
java.lang.String[] answerTypes)
sentence - the sentenceanswerTypes - the expected answer types
private java.util.Hashtable<java.lang.String[],java.lang.Double> getAllVerbForms(Predicate[] ps)
ps - predicates
private boolean checkSentence(Result sentence)
sentence - sentence-level result
true iff the sentence is relevantpublic Result[] apply(Result[] results)
apply in class Filterresults - array of Result objects containing documents
Result objects containing predicates
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||