edu.washington.cs.knowitall.argumentidentifier
Class PatternExtractor
java.lang.Object
edu.washington.cs.knowitall.argumentidentifier.PatternExtractor
public class PatternExtractor
- extends Object
PatternExtractor contains regular expressions for common syntactic patterns
- Author:
- janara
|
Method Summary |
boolean |
adjRelation(ChunkedExtraction extr)
|
boolean |
appClause(ChunkedExtraction extr,
int current)
|
boolean |
complementClause(ChunkedExtraction extr)
|
boolean |
compoundVerb(ChunkedExtraction extr)
|
boolean |
doubleNP(ChunkedExtraction extr)
|
boolean |
findSubj(ChunkedExtraction extr,
int i)
|
boolean |
getCapitalized(ChunkedExtraction extr,
int current)
|
static List<ChunkedSentenceToken> |
getChunkedSentenceFromPred(ChunkedExtraction extr)
|
static List<ChunkedSentenceToken> |
getChunkedSentenceFromPredEnd(ChunkedExtraction extr)
|
boolean |
getInterveningConj(ChunkedExtraction extr,
int current)
|
int |
getInterveningNPCount(ChunkedExtraction extr,
int k)
|
int |
getNPCountBefore(ChunkedExtraction extr,
int current)
|
static int |
getNPToEndCount(ChunkedExtraction extr,
int current)
|
int |
getPunctuationCount(ChunkedExtraction extr,
int current)
|
boolean |
ifClause(ChunkedExtraction extr)
|
boolean |
infinitiveClause(ChunkedExtraction extr)
|
static boolean |
inNPList(ChunkedExtraction extr,
int current)
|
static boolean |
inPPList(ChunkedExtraction extr,
int current)
|
boolean |
matches(List<ChunkedSentenceToken> tokens,
String type,
boolean arg1)
|
boolean |
matchesAppositiveClause(ChunkedExtraction extr,
int current)
|
boolean |
matchesAppositiveClause2(ChunkedExtraction extr,
int current)
|
boolean |
matchesAppositiveStrict(ChunkedExtraction extr)
|
boolean |
matchesCommaBeforeVerb(ChunkedExtraction extr)
|
boolean |
matchesList(ChunkedExtraction extr,
int argend,
int current)
|
boolean |
matchesListStrict(ChunkedExtraction extr)
|
boolean |
matchesNPList(ChunkedExtraction extr)
|
boolean |
matchesNPVerb(ChunkedExtraction extr)
|
boolean |
matchesObj(ChunkedExtraction extr,
int current)
|
boolean |
matchesPPBeforeVerb(ChunkedExtraction extr)
|
boolean |
matchesQuotes(ChunkedExtraction extr)
|
boolean |
matchesRelativeClause(ChunkedExtraction extr,
int argend)
|
boolean |
matchesStatement(ChunkedExtraction extr)
|
boolean |
matchesToVerb(ChunkedExtraction extr,
boolean debug)
|
boolean |
matchesVerbConjSimple(ChunkedExtraction extr,
int current)
|
boolean |
nestedRelation1(ChunkedExtraction extr)
|
boolean |
nestedRelation2(ChunkedExtraction extr)
|
boolean |
nextIsDash(ChunkedExtraction extr,
int current)
|
static boolean |
nextisNP(ChunkedExtraction extr,
int current)
|
static boolean |
nextIsPP(ChunkedExtraction extr,
int current)
|
boolean |
nextIsThat(ChunkedExtraction extr,
int current)
|
static boolean |
nextIsVP(ChunkedExtraction extr,
int current)
|
boolean |
nextNPWhich(ChunkedExtraction extr,
int current)
|
boolean |
npInfinitiveClause(ChunkedExtraction extr)
|
boolean |
npRelativeClause(ChunkedExtraction extr)
|
boolean |
objNestedClause(ChunkedExtraction extr)
|
static boolean |
previousIsOf(ChunkedExtraction extr,
int current)
|
boolean |
prevStop(ChunkedExtraction extr,
int current)
|
boolean |
quotesSubj(ChunkedExtraction extr,
int i)
|
boolean |
relClause(ChunkedExtraction extr,
int current)
|
boolean |
relSubj(ChunkedExtraction extr,
int i)
|
boolean |
simpleSubj(ChunkedExtraction extr,
int i)
|
boolean |
startsList(ChunkedExtraction extr)
|
boolean |
vbgIsNext(ChunkedExtraction extr,
int current)
|
boolean |
vpStartsWithTo(ChunkedExtraction extr,
int current)
|
boolean |
wordAfterIsVP(ChunkedExtraction extr,
int current)
|
boolean |
wordBeforeIsVP(ChunkedExtraction extr,
int current)
|
boolean |
wordBeforePredIsConj(ChunkedExtraction extr,
int current)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CAPS
public static String CAPS
ALPHA
public static String ALPHA
ALPHANUM
public static String ALPHANUM
PUNT
public static String PUNT
np
public static String np
vp
public static String vp
comma
public static String comma
and
public static String and
or
public static String or
adjp
public static String adjp
advp
public static String advp
np_pp
public static String np_pp
pp_np1
public static String pp_np1
pp_np2
public static String pp_np2
vp1
public static String vp1
vp2
public static String vp2
vp3
public static String vp3
advp_vp_advp
public static String advp_vp_advp
pp
public static String pp
introduces_if
public static String introduces_if
vp_np
public static String vp_np
PatternExtractor
public PatternExtractor()
prevStop
public boolean prevStop(ChunkedExtraction extr,
int current)
getInterveningNPCount
public int getInterveningNPCount(ChunkedExtraction extr,
int k)
getPunctuationCount
public int getPunctuationCount(ChunkedExtraction extr,
int current)
getCapitalized
public boolean getCapitalized(ChunkedExtraction extr,
int current)
wordBeforePredIsConj
public boolean wordBeforePredIsConj(ChunkedExtraction extr,
int current)
getInterveningConj
public boolean getInterveningConj(ChunkedExtraction extr,
int current)
wordAfterIsVP
public boolean wordAfterIsVP(ChunkedExtraction extr,
int current)
wordBeforeIsVP
public boolean wordBeforeIsVP(ChunkedExtraction extr,
int current)
nextIsThat
public boolean nextIsThat(ChunkedExtraction extr,
int current)
getNPCountBefore
public int getNPCountBefore(ChunkedExtraction extr,
int current)
matchesPPBeforeVerb
public boolean matchesPPBeforeVerb(ChunkedExtraction extr)
matchesToVerb
public boolean matchesToVerb(ChunkedExtraction extr,
boolean debug)
matchesNPVerb
public boolean matchesNPVerb(ChunkedExtraction extr)
matchesAppositiveClause2
public boolean matchesAppositiveClause2(ChunkedExtraction extr,
int current)
matchesRelativeClause
public boolean matchesRelativeClause(ChunkedExtraction extr,
int argend)
matchesQuotes
public boolean matchesQuotes(ChunkedExtraction extr)
matchesStatement
public boolean matchesStatement(ChunkedExtraction extr)
matchesAppositiveStrict
public boolean matchesAppositiveStrict(ChunkedExtraction extr)
matchesListStrict
public boolean matchesListStrict(ChunkedExtraction extr)
matchesList
public boolean matchesList(ChunkedExtraction extr,
int argend,
int current)
matchesObj
public boolean matchesObj(ChunkedExtraction extr,
int current)
matchesCommaBeforeVerb
public boolean matchesCommaBeforeVerb(ChunkedExtraction extr)
nextNPWhich
public boolean nextNPWhich(ChunkedExtraction extr,
int current)
nextIsDash
public boolean nextIsDash(ChunkedExtraction extr,
int current)
vpStartsWithTo
public boolean vpStartsWithTo(ChunkedExtraction extr,
int current)
matchesVerbConjSimple
public boolean matchesVerbConjSimple(ChunkedExtraction extr,
int current)
matchesAppositiveClause
public boolean matchesAppositiveClause(ChunkedExtraction extr,
int current)
simpleSubj
public boolean simpleSubj(ChunkedExtraction extr,
int i)
quotesSubj
public boolean quotesSubj(ChunkedExtraction extr,
int i)
relSubj
public boolean relSubj(ChunkedExtraction extr,
int i)
findSubj
public boolean findSubj(ChunkedExtraction extr,
int i)
appClause
public boolean appClause(ChunkedExtraction extr,
int current)
vbgIsNext
public boolean vbgIsNext(ChunkedExtraction extr,
int current)
relClause
public boolean relClause(ChunkedExtraction extr,
int current)
ifClause
public boolean ifClause(ChunkedExtraction extr)
compoundVerb
public boolean compoundVerb(ChunkedExtraction extr)
startsList
public boolean startsList(ChunkedExtraction extr)
adjRelation
public boolean adjRelation(ChunkedExtraction extr)
objNestedClause
public boolean objNestedClause(ChunkedExtraction extr)
complementClause
public boolean complementClause(ChunkedExtraction extr)
npInfinitiveClause
public boolean npInfinitiveClause(ChunkedExtraction extr)
infinitiveClause
public boolean infinitiveClause(ChunkedExtraction extr)
doubleNP
public boolean doubleNP(ChunkedExtraction extr)
nestedRelation1
public boolean nestedRelation1(ChunkedExtraction extr)
nestedRelation2
public boolean nestedRelation2(ChunkedExtraction extr)
npRelativeClause
public boolean npRelativeClause(ChunkedExtraction extr)
matchesNPList
public boolean matchesNPList(ChunkedExtraction extr)
getChunkedSentenceFromPred
public static List<ChunkedSentenceToken> getChunkedSentenceFromPred(ChunkedExtraction extr)
getChunkedSentenceFromPredEnd
public static List<ChunkedSentenceToken> getChunkedSentenceFromPredEnd(ChunkedExtraction extr)
matches
public boolean matches(List<ChunkedSentenceToken> tokens,
String type,
boolean arg1)
inNPList
public static boolean inNPList(ChunkedExtraction extr,
int current)
inPPList
public static boolean inPPList(ChunkedExtraction extr,
int current)
previousIsOf
public static boolean previousIsOf(ChunkedExtraction extr,
int current)
nextIsVP
public static boolean nextIsVP(ChunkedExtraction extr,
int current)
nextIsPP
public static boolean nextIsPP(ChunkedExtraction extr,
int current)
nextisNP
public static boolean nextisNP(ChunkedExtraction extr,
int current)
getNPToEndCount
public static int getNPToEndCount(ChunkedExtraction extr,
int current)
Copyright © 2010-2012 University of Washington CSE. All Rights Reserved.