|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectlexicalChain.MetaChain
public class MetaChain
Field Summary | |
---|---|
static double |
T0_WEIGHT
Constants |
static double |
T1_WEIGHT_FAR
|
static double |
T1_WEIGHT_NEAR
|
static double |
T1_WEIGHT_VICINAL
|
Constructor Summary | |
---|---|
MetaChain()
Constructs a new meta chain |
|
MetaChain(java.lang.String head,
int start,
int sense)
Constructs a meta chain with a given head, start line number and sense number |
Method Summary | |
---|---|
void |
add(java.lang.String word,
java.lang.String rel,
java.lang.Integer line)
add Add a word, relation, line number triple to MetaChain |
int |
compareTo(java.lang.Object obj)
compareTo Comparison is done according to the score If two chains have the same score, then the line number is used to break the tie, the smaller the line number, the greater the score |
java.lang.String |
getChainHead()
Gets chain head |
double |
getScore()
getScore Will be more elaborate in the future. |
int |
getSenseNumber()
Gets sense number |
int |
getStartLine()
Gets start line |
java.util.Iterator<java.lang.Object> |
iterator()
returns a new Chain Iterator |
void |
remove(int index)
remove Remove a word, relation, line number triple to MetaChain |
java.lang.String |
toString()
toString String representation of MetaChain: chainHead, words [score: , sense:, line: ] example: regard, events, reference, event, respect [score: 5, sense: 10, line: 4] |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final double T0_WEIGHT
public static final double T1_WEIGHT_NEAR
public static final double T1_WEIGHT_VICINAL
public static final double T1_WEIGHT_FAR
Constructor Detail |
---|
public MetaChain()
public MetaChain(java.lang.String head, int start, int sense)
head
- start
- sense
- Method Detail |
---|
public void add(java.lang.String word, java.lang.String rel, java.lang.Integer line)
word
- rel
- line
- public void remove(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
public java.lang.String getChainHead()
public int getStartLine()
public int getSenseNumber()
public java.util.Iterator<java.lang.Object> iterator()
public double getScore()
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable<java.lang.Object>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |