public class ActionFactory extends Object implements ActionType
kLeftArc, kNone, kRightArc, kShift| Constructor and Description |
|---|
ActionFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Action |
make_left_arc(int rel)
建立右焦点词依存于左焦点词的依存关系
|
static Action |
make_right_arc(int rel)
建立左焦点词依存于右焦点词的依存关系
|
static Action |
make_shift()
不建立依存关系,只转移句法分析的焦点,即新的左焦点词是原来的右焦点词,依此类推。
|
public static Action make_shift()
public static Action make_left_arc(int rel)
rel - 依存关系public static Action make_right_arc(int rel)
rel - 依存关系Copyright © 2014–2021 码农场. All rights reserved.