|
Parsing Engine | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdanbikel.parser.DefaultShifter
public class DefaultShifter
A default implementation of the Shift
interface that simply shifts
every modifier or word, skipping nothing. That is, the shift(TrainerEvent,SexpList,Sexp)
method shifts the specified
previous modifier into the specified previous modifier list, the shift(TrainerEvent,WordList,Word)
method shifts the specified word
into the specified previous word list and the two skip methods both return
false regardless of the values of their arguments.
Constructor Summary | |
---|---|
DefaultShifter()
Default constructor. |
Method Summary | |
---|---|
void |
shift(TrainerEvent event,
SexpList list,
Sexp prevMod)
Shifts the previously-generated modifier label into the history. |
void |
shift(TrainerEvent event,
WordList wordList,
Word prevWord)
Shifts the previously-generated modifier head word into the history. |
boolean |
skip(Item item,
Sexp prevMod)
Returns whether the previously-generated modifier should be skipped when constructing a history for the specified chart item. |
boolean |
skip(Item item,
Word prevWord)
Returns whether the previously-generated modifier head word should be skipped when constructing a history for the specified chart item. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultShifter()
Method Detail |
---|
public void shift(TrainerEvent event, SexpList list, Sexp prevMod)
Shift
shift
in interface Shift
event
- the TrainerEvent whose history is to be updatedlist
- the current history of previously-generated modifiersprevMod
- the previously-generated modifierpublic void shift(TrainerEvent event, WordList wordList, Word prevWord)
Shift
shift
in interface Shift
event
- the TrainerEvent whose history is to be updatedwordList
- the current history of previously-generated modifier
head wordsprevWord
- the head word of the previously-generated modifierpublic boolean skip(Item item, Sexp prevMod)
Shift
skip
in interface Shift
item
- the CKYItem object whose history is being constructedprevMod
- the previously-generated modifier
public boolean skip(Item item, Word prevWord)
Shift
skip
in interface Shift
item
- the CKYItem object whose history is being constructedprevWord
- the head word of the previously-generated modifier
|
Parsing Engine | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |