com.hankcs.hanlp.dependency.nnparser.action
类 ActionFactory

java.lang.Object
  继承者 com.hankcs.hanlp.dependency.nnparser.action.ActionFactory
所有已实现的接口:
ActionType

public class ActionFactory
extends Object
implements ActionType

作者:
hankcs

字段摘要
 
从接口 com.hankcs.hanlp.dependency.nnparser.action.ActionType 继承的字段
kLeftArc, kNone, kRightArc, kShift
 
构造方法摘要
ActionFactory()
           
 
方法摘要
static Action make_left_arc(int rel)
          建立右焦点词依存于左焦点词的依存关系
static Action make_right_arc(int rel)
          建立左焦点词依存于右焦点词的依存关系
static Action make_shift()
          不建立依存关系,只转移句法分析的焦点,即新的左焦点词是原来的右焦点词,依此类推。
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ActionFactory

public ActionFactory()
方法详细信息

make_shift

public static Action make_shift()
不建立依存关系,只转移句法分析的焦点,即新的左焦点词是原来的右焦点词,依此类推。

返回:

make_left_arc

public static Action make_left_arc(int rel)
建立右焦点词依存于左焦点词的依存关系

参数:
rel - 依存关系
返回:

make_right_arc

public static Action make_right_arc(int rel)
建立左焦点词依存于右焦点词的依存关系

参数:
rel - 依存关系
返回:


Copyright © 2014–2015 鐮佸啘鍦�/a>. All rights reserved.