public abstract class Pattern
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
PatternFactory.PatternType |
type |
Constructor and Description |
---|
Pattern(PatternFactory.PatternType type) |
Modifier and Type | Method and Description |
---|---|
abstract int |
equalContext(Pattern p) |
static java.util.Set |
getContext(PatternFactory.PatternType patternClass,
DataInstance sent,
int i,
java.util.Set<CandidatePhrase> stopWords)
Get set of patterns around this token.
|
abstract CollectionValuedMap<java.lang.String,java.lang.String> |
getRelevantWords() |
protected static void |
getRelevantWordsBase(Token[] t,
CollectionValuedMap<java.lang.String,java.lang.String> relWords) |
protected static void |
getRelevantWordsBase(Token t,
CollectionValuedMap<java.lang.String,java.lang.String> relWords) |
static boolean |
sameGenre(PatternFactory.PatternType patternClass,
Pattern p1,
Pattern p2) |
static boolean |
subsumes(PatternFactory.PatternType patternClass,
Pattern pat,
Pattern p) |
abstract java.lang.String |
toString(java.util.List<java.lang.String> notAllowedClasses) |
abstract java.lang.String |
toStringSimple() |
public PatternFactory.PatternType type
public Pattern(PatternFactory.PatternType type)
public static boolean sameGenre(PatternFactory.PatternType patternClass, Pattern p1, Pattern p2)
public abstract CollectionValuedMap<java.lang.String,java.lang.String> getRelevantWords()
public static boolean subsumes(PatternFactory.PatternType patternClass, Pattern pat, Pattern p)
public abstract int equalContext(Pattern p)
public abstract java.lang.String toStringSimple()
public static java.util.Set getContext(PatternFactory.PatternType patternClass, DataInstance sent, int i, java.util.Set<CandidatePhrase> stopWords)
public abstract java.lang.String toString(java.util.List<java.lang.String> notAllowedClasses)
protected static void getRelevantWordsBase(Token[] t, CollectionValuedMap<java.lang.String,java.lang.String> relWords)
protected static void getRelevantWordsBase(Token t, CollectionValuedMap<java.lang.String,java.lang.String> relWords)