Class TreeFeatures

java.lang.Object
  extended by TreeFeatures

 class TreeFeatures
extends Object

Author:
Richard Johansson (richard@cs.lth.se)

Field Summary
(package private) static boolean COLLAPSE_IDENTICAL
           
(package private) static boolean COLLAPSE_VERB_TOKENS
           
(package private) static boolean DEP_COLLAPSE_NOUN_TAGS
           
(package private) static boolean DEP_COLLAPSE_VERB_TAGS
           
(package private) static boolean PP_PROCESSING
           
 
Method Summary
(package private) static int countUnderscores(String s)
           
(package private) static DepNode findCommonAncestor(DepGraph graph, DepNode node1, DepNode node2)
           
(package private) static Node findCommonAncestor(Node node, Node predNode)
           
(package private) static TokenNode findCommonAncestorDep(Node node, Node predNode)
           
(package private) static String findDepPath(Node node, Node predNode)
           
(package private) static String findGovCat(Node n)
           
(package private) static String findMaltPath(DepGraph graph, int index1, int index2)
           
(package private) static String findPassiveInParents(Node n)
           
(package private) static String findPath(Node node, Node predNode)
           
(package private) static String findPhraseType(Node n)
           
(package private) static Pair<String,TokenNode> findPhraseTypeAndHead(Node n)
           
(package private) static String findSubCat(Node predNode)
           
(package private) static String findVoice(Node n)
           
(package private) static Node findVPHead(TokenNode predNode)
           
(package private) static boolean isBefore(Node node, int index)
           
(package private) static boolean isPassiveSwedish(TokenNode tn)
           
(package private) static boolean isUnderLabel(Node n, HashMap nodeToLabel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLLAPSE_VERB_TOKENS

static final boolean COLLAPSE_VERB_TOKENS
See Also:
Constant Field Values

COLLAPSE_IDENTICAL

static final boolean COLLAPSE_IDENTICAL
See Also:
Constant Field Values

PP_PROCESSING

static final boolean PP_PROCESSING
See Also:
Constant Field Values

DEP_COLLAPSE_NOUN_TAGS

static final boolean DEP_COLLAPSE_NOUN_TAGS
See Also:
Constant Field Values

DEP_COLLAPSE_VERB_TAGS

static final boolean DEP_COLLAPSE_VERB_TAGS
See Also:
Constant Field Values
Method Detail

findMaltPath

static String findMaltPath(DepGraph graph,
                           int index1,
                           int index2)

findCommonAncestor

static DepNode findCommonAncestor(DepGraph graph,
                                  DepNode node1,
                                  DepNode node2)

findPath

static String findPath(Node node,
                       Node predNode)

findCommonAncestor

static Node findCommonAncestor(Node node,
                               Node predNode)

findVPHead

static Node findVPHead(TokenNode predNode)

findPhraseType

static String findPhraseType(Node n)

findPhraseTypeAndHead

static Pair<String,TokenNode> findPhraseTypeAndHead(Node n)

findDepPath

static String findDepPath(Node node,
                          Node predNode)

findCommonAncestorDep

static TokenNode findCommonAncestorDep(Node node,
                                       Node predNode)

findSubCat

static String findSubCat(Node predNode)

findGovCat

static String findGovCat(Node n)

findVoice

static String findVoice(Node n)

isPassiveSwedish

static boolean isPassiveSwedish(TokenNode tn)

isBefore

static boolean isBefore(Node node,
                        int index)

isUnderLabel

static boolean isUnderLabel(Node n,
                            HashMap nodeToLabel)

findPassiveInParents

static String findPassiveInParents(Node n)

countUnderscores

static int countUnderscores(String s)