|
|||||||||
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 String |
BACKGROUND_SYMBOL
|
static String[] |
fields
|
Constructor Summary | |
---|---|
PascalTemplate()
|
|
PascalTemplate(PascalTemplate pt)
|
Method Summary | |
---|---|
static boolean |
acronymMatch(String s1,
String s2,
HashMap stemmedAcronymIndex)
|
boolean |
equals(Object obj)
|
static int |
getFieldIndex(String tag)
|
String |
getValue(String fieldName)
|
int |
hashCode()
|
static PascalTemplate |
mergeCliqueTemplates(DateTemplate dt,
String location,
InfoTemplate wi)
Merges partial (clique) templates into a full one. |
void |
print()
|
void |
setValue(int index,
String value)
|
void |
setValue(String fieldName,
String value)
Sets template values. |
static String |
stemAcronym(String s,
CliqueTemplates ct)
|
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(ClassicCounter[] 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 String[] fields
public static final String BACKGROUND_SYMBOL
Constructor Detail |
---|
public PascalTemplate()
public PascalTemplate(PascalTemplate pt)
Method Detail |
---|
public static boolean acronymMatch(String s1, String s2, HashMap stemmedAcronymIndex)
s1
- s2
- stemmedAcronymIndex
-
public static String stemAcronym(String s, CliqueTemplates ct)
s
- ct
-
public static PascalTemplate mergeCliqueTemplates(DateTemplate dt, String location, InfoTemplate wi)
dt
- date templatelocation
- locationwi
- workshop/conference info template
PascalTemplate
resulting from this merge.public void setValue(String fieldName, String value)
fieldName
- (i.e. workshopname, workshopdate)value
- public void setValue(int index, String value)
public String getValue(String fieldName)
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public static int getFieldIndex(String tag)
tag
- field name (i.e. workshopdate, workshoplocation)
Index
public void writeToFieldValueCounter(ClassicCounter[] 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 String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |