|
Parsing Engine | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdanbikel.parser.Shifter
public class Shifter
A class containing only static methods that mirror the signatures of the
Shift
interface, allowing a convenient flow-through mechanism to an
internal static Shift
object, the exact type of which is determined
by the value of Settings.shifterClass
.
Method Summary | |
---|---|
static void |
shift(TrainerEvent event,
SexpList list,
Sexp prevMod)
Uses the internal Shifter instance to shift the newly-generated
(and therefore previously-generated) modifier into the history, which is a
SexpList . |
static void |
shift(TrainerEvent event,
WordList wordList,
Word prevWord)
Uses the internal Shifter instance to shift the newly-generated
(and therefore previously-generated) head word into the history, which is a
WordList . |
static boolean |
skip(CKYItem item,
Sexp prevMod)
Uses the internal Shifter instance to determine whether the
specified modifier should be skipped when constructing a history for the
specified chart item. |
static boolean |
skip(CKYItem item,
Word prevWord)
Uses the internal Shifter instance to determine whether the
specified 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 |
Method Detail |
---|
public static void shift(TrainerEvent event, SexpList list, Sexp prevMod)
Shifter
instance to shift the newly-generated
(and therefore previously-generated) modifier into the history, which is a
SexpList
.
event
- the event whose history is being updatedlist
- the history list from the event to be updatedprevMod
- the previously-generated modifierpublic static void shift(TrainerEvent event, WordList wordList, Word prevWord)
Shifter
instance to shift the newly-generated
(and therefore previously-generated) head word into the history, which is a
WordList
.
event
- the event whose history is being updatedwordList
- the history list from the event to be updatedprevWord
- the previously-generated modifierpublic static boolean skip(CKYItem item, Sexp prevMod)
Shifter
instance to determine whether the
specified modifier should be skipped when constructing a history for the
specified chart item.
item
- the chart item whose history is being constructedprevMod
- the previously-generated modifier to be tested
public static boolean skip(CKYItem item, Word prevWord)
Shifter
instance to determine whether the
specified modifier head word should be skipped when constructing a history
for the specified chart item.
item
- the chart item whose history is being constructedprevWord
- the previously-generated modifier head word to be tested
|
Parsing Engine | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |