|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.nlp.ie.pascal.PascalTemplate
public class PascalTemplate
Maps non-background Pascal fields to strings.
| Field Summary | |
|---|---|
static java.lang.String |
BACKGROUND_SYMBOL
|
static java.lang.String[] |
fields
|
| Constructor Summary | |
|---|---|
PascalTemplate()
|
|
PascalTemplate(PascalTemplate pt)
|
|
| Method Summary | |
|---|---|
static boolean |
acronymMatch(java.lang.String s1,
java.lang.String s2,
java.util.HashMap stemmedAcronymIndex)
|
boolean |
equals(java.lang.Object obj)
|
static int |
getFieldIndex(java.lang.String tag)
|
java.lang.String |
getValue(java.lang.String fieldName)
|
int |
hashCode()
|
static PascalTemplate |
mergeCliqueTemplates(DateTemplate dt,
java.lang.String location,
InfoTemplate wi)
Merges partial (clique) templates into a full one. |
void |
print()
|
void |
setValue(int index,
java.lang.String value)
|
void |
setValue(java.lang.String fieldName,
java.lang.String value)
Sets template values. |
static java.lang.String |
stemAcronym(java.lang.String s,
CliqueTemplates ct)
|
java.lang.String |
toString()
|
void |
unpackToCliqueTemplates(CliqueTemplates ct,
double score)
Divides this template into partial templates, and updates the counts of these partial templates in the CliqueTemplates object. |
void |
writeToFieldValueCounter(Counter<java.lang.String>[] fieldValueCounter,
double score)
Should be passed a Counter[], each entry of which
keeps scores for possibilities in that template slot. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String[] fields
public static final java.lang.String BACKGROUND_SYMBOL
| Constructor Detail |
|---|
public PascalTemplate()
public PascalTemplate(PascalTemplate pt)
| Method Detail |
|---|
public static boolean acronymMatch(java.lang.String s1,
java.lang.String s2,
java.util.HashMap stemmedAcronymIndex)
public static java.lang.String stemAcronym(java.lang.String s,
CliqueTemplates ct)
public static PascalTemplate mergeCliqueTemplates(DateTemplate dt,
java.lang.String location,
InfoTemplate wi)
dt - date templatelocation - locationwi - workshop/conference info template
PascalTemplate resulting from this merge.
public void setValue(java.lang.String fieldName,
java.lang.String value)
fieldName - (i.e. workshopname, workshopdate)
public void setValue(int index,
java.lang.String value)
public java.lang.String getValue(java.lang.String fieldName)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static int getFieldIndex(java.lang.String tag)
tag - field name (i.e. workshopdate, workshoplocation)
Index
public void writeToFieldValueCounter(Counter<java.lang.String>[] fieldValueCounter,
double score)
Counter[], each entry of which
keeps scores for possibilities in that template slot. The counter
for each template value is incremented by the corresponding score of
this PascalTemplate.
fieldValueCounter - an array of counters, each of which holds label possibilities for one fieldscore - increment counts by this much.
public void unpackToCliqueTemplates(CliqueTemplates ct,
double score)
CliqueTemplates object.
ct - the partial templates counter objectscore - increment counts by this muchpublic void print()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||