| 
 | MaltParser 1.4.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.maltparser.parser.history.kbest.KBestList
public class KBestList
| Field Summary | |
|---|---|
| protected  int | addCandidateIndex | 
| protected  SingleDecision | decision | 
| protected  int | k | 
| protected  ArrayList<Candidate> | kBestList | 
| protected  int | topCandidateIndex | 
| Constructor Summary | |
|---|---|
| KBestList(Integer k,
                   SingleDecision decision)Creates a k-best list | |
| KBestList(SingleDecision decision)Creates a unrestricted k-best list | |
| Method Summary | |
|---|---|
|  void | add(int actionCode)Adds a candidate to the k-best list | 
|  void | add(String symbol)Adds a candidate to the k-best list | 
| protected  int | getAddCandidateIndex() | 
|  ScoredCandidate | getCandidate(int i) | 
|  int | getCurrentSize()Returns the current size of the k-best list | 
|  SingleDecision | getDecision()Returns a single decision object | 
|  int | getK()Returns the maximum number of candidates in the k-best list. | 
|  int | getKBestListSize() | 
| protected  int | getTopCandidateIndex() | 
| protected  void | initKBestList() | 
|  int | peekNextKBest() | 
|  void | reset()Resets the k-best list | 
| protected  void | setDecision(SingleDecision decision)Sets a reference to the decision that owns the k-best list. | 
| protected  void | setK(int k)Sets the maximum number of candidates in the k-best list | 
|  String | toString() | 
|  boolean | updateActionWithNextKBest()Updates the corresponding single decision with the next value in the k-best list. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
protected ArrayList<Candidate> kBestList
protected int k
protected int topCandidateIndex
protected int addCandidateIndex
protected SingleDecision decision
| Constructor Detail | 
|---|
public KBestList(SingleDecision decision)
decision - a reference to the single decision that uses the k-best list
public KBestList(Integer k,
                 SingleDecision decision)
k - the k-best list sizedecision - a reference to the single decision that uses the k-best list.| Method Detail | 
|---|
protected void initKBestList()
public void reset()
public void add(int actionCode)
         throws MaltChainedException
actionCode - the integer representation  of candidate action
MaltChainedException
public void add(String symbol)
         throws MaltChainedException
symbol - the string representation of candidate action
MaltChainedException
public boolean updateActionWithNextKBest()
                                  throws MaltChainedException
MaltChainedExceptionpublic int peekNextKBest()
public int getCurrentSize()
public int getK()
protected void setK(int k)
k - the maximum number of candidatesprotected int getTopCandidateIndex()
protected int getAddCandidateIndex()
public SingleDecision getDecision()
protected void setDecision(SingleDecision decision)
decision - a reference to the decision that owns the k-best listpublic int getKBestListSize()
public ScoredCandidate getCandidate(int i)
public String toString()
toString in class Object| 
 | MaltParser 1.4.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||