Example usage for edu.stanford.nlp.trees Tree label

List of usage examples for edu.stanford.nlp.trees Tree label

Introduction

In this page you can find the example usage for edu.stanford.nlp.trees Tree label.

Prototype

@Override
public Label label() 

Source Link

Document

Returns the label associated with the current node, or null if there is no label.

Usage

From source file:wtute.engine.TreeHelper.java

public static boolean isAdjectivalPhrase(Tree head) {
    String headTag = head.label().toString();
    return (headTag.equals("ADVP"));
}

From source file:wtute.engine.TreeHelper.java

public static boolean isVP(Tree head) {
    String headTag = head.label().toString();
    return (headTag.equals("VP"));
}

From source file:wtute.engine.TreeHelper.java

public static boolean isNP(Tree head) {
    String headTag = head.label().toString();
    return (headTag.equals("NP"));
}

From source file:wtute.engine.TreeHelper.java

public static boolean isSentence(Tree head) {
    String headTag = head.label().toString();
    return (headTag.equals("S"));
}