public class KeyData extends Object implements Comparable
| Modifier and Type | Field and Description |
|---|---|
double |
cscore |
double |
escore |
boolean |
init |
boolean |
required |
double |
score |
double |
t2score |
| Constructor and Description |
|---|
KeyData(String word,
String tgtype,
int fq,
int ktype,
int total) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToMap(KeyData dt)
Add shared/mix trigger to map
|
int |
compareTo(Object o) |
KeyData |
getDefault()
Get default event type (ignoring modifiers)
In this case, use the highest frequency as default type
|
KeyData |
getKeyData(String etype)
get KeyData for shared and mixed trigger
|
Map<String,KeyData> |
getMap()
get list of shared /mix trigger -> which has the same key
|
String |
getType(List<Word> tokens)
Determine event type based on a given list of modifiers
|
void |
initData(String l1,
String l2) |
String |
set2String(Set<String> map)
Convert a map into string separeted by commar.
|
void |
setModifiers(String[] ls)
Set modifers for this trigger
|
public double score
public boolean required
public double escore
public double cscore
public double t2score
public boolean init
public KeyData getDefault()
public int compareTo(Object o)
compareTo in interface Comparablepublic void addToMap(KeyData dt)
dt: - keydatapublic Map<String,KeyData> getMap()
public KeyData getKeyData(String etype)
type: - event typepublic void setModifiers(String[] ls)
ls - public String set2String(Set<String> map)
map - Copyright © 2016 JULIE Lab, Germany. All rights reserved.