public class ArcEager extends TransitionBasedParser
classifier, dependencyRelations, featureLength, maps| Modifier and Type | Method and Description |
|---|---|
static boolean |
canDo(Action action,
State state) |
static void |
commitAction(int action,
int label,
float score,
ArrayList<Integer> dependencyRelations,
Configuration newConfig) |
static boolean |
isTerminal(ArrayList<Configuration> beam)
Shows true if all of the configurations in the beam are in the terminal state
|
static void |
leftArc(State state,
int dependency) |
static void |
reduce(State state) |
static void |
rightArc(State state,
int dependency) |
static void |
shift(State state) |
static void |
unShift(State state) |
idWordpublic static void shift(State state)
public static void unShift(State state)
public static void reduce(State state)
public static void leftArc(State state, int dependency)
public static void rightArc(State state, int dependency)
public static boolean isTerminal(ArrayList<Configuration> beam)
beam - the current beampublic static void commitAction(int action,
int label,
float score,
ArrayList<Integer> dependencyRelations,
Configuration newConfig)
Copyright © 2014–2021 码农场. All rights reserved.