类 com.hankcs.hanlp.collection.MDAG.MDAGNode
的使用

使用 MDAGNode 的软件包
com.hankcs.hanlp.collection.MDAG   
 

com.hankcs.hanlp.collection.MDAGMDAGNode 的使用
 

声明为 MDAGNodecom.hankcs.hanlp.collection.MDAG 中的字段
protected  MDAGNode MDAG.sourceNode
          根节点
 

类型参数类型为 MDAGNodecom.hankcs.hanlp.collection.MDAG 中的字段
protected  HashMap<MDAGNode,MDAGNode> MDAG.equivalenceClassMDAGNodeHashMap
          等价类集合,相当于论文中的register
protected  HashMap<MDAGNode,MDAGNode> MDAG.equivalenceClassMDAGNodeHashMap
          等价类集合,相当于论文中的register
 

返回 MDAGNodecom.hankcs.hanlp.collection.MDAG 中的方法
 MDAGNode MDAGNode.addOutgoingTransition(char letter, boolean targetAcceptStateStatus)
          新建一个转移目标
Creates an outgoing _transition labeled with a given char that has a new node as its target.
 MDAGNode MDAGNode.addOutgoingTransition(char letter, MDAGNode newTargetNode)
          建立一条边(起点是自己)
 MDAGNode MDAGNode.clone()
          克隆一个状态
Creates an MDAGNode possessing the same accept state status and outgoing transitions as this node.
 MDAGNode MDAGNode.clone(MDAGNode soleParentNode, char parentToCloneTransitionLabelChar)
          克隆一个状态
原来soleParentNode转移到本状态,现在转移到克隆后的状态 Creates an MDAGNode possessing the same accept state status ant _transition set (incoming & outgoing) as this node. outgoing transitions as this node.
 MDAGNode MDAGNode.transition(char letter)
          Follows an outgoing _transition of this node labeled with a given char.
 MDAGNode MDAGNode.transition(char[] str)
           
 MDAGNode MDAGNode.transition(char[] str, int offset)
           
 MDAGNode MDAGNode.transition(String str)
          沿着一个路径转移
Follows a _transition path starting from this node.
 

返回变量类型为 MDAGNode 的类型的 com.hankcs.hanlp.collection.MDAG 中的方法
 HashMap<MDAGNode,MDAGNode> MDAG._getEquivalenceClassMDAGNodeHashMap()
          调试用
 HashMap<MDAGNode,MDAGNode> MDAG._getEquivalenceClassMDAGNodeHashMap()
          调试用
 TreeMap<Character,MDAGNode> MDAGNode.getOutgoingTransitions()
          Retrieves this node's outgoing transitions.
 Stack<MDAGNode> MDAGNode.getTransitionPathNodes(String str)
          获取一个字符串路径上经过的节点
Retrieves the nodes in the _transition path starting from this node corresponding to a given String .
 

参数类型为 MDAGNodecom.hankcs.hanlp.collection.MDAG 中的方法
 MDAGNode MDAGNode.addOutgoingTransition(char letter, MDAGNode newTargetNode)
          建立一条边(起点是自己)
 MDAGNode MDAGNode.clone(MDAGNode soleParentNode, char parentToCloneTransitionLabelChar)
          克隆一个状态
原来soleParentNode转移到本状态,现在转移到克隆后的状态 Creates an MDAGNode possessing the same accept state status ant _transition set (incoming & outgoing) as this node. outgoing transitions as this node.
static boolean MDAGNode.haveSameTransitions(MDAGNode node1, MDAGNode node2)
          是否含有相同的转移函数
 void MDAGNode.reassignOutgoingTransition(char letter, MDAGNode oldTargetNode, MDAGNode newTargetNode)
          重新设置转移状态函数的目标 Reassigns the target node of one of this node's outgoing transitions.
 



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