|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.ml.tigerxml.tools.SyntaxTools
public class SyntaxTools
Provides methods that define a number of higher-level linguistic concepts. Included are "subject", and "voice". This class is for static use.
| Constructor Summary | |
|---|---|
SyntaxTools()
|
|
| Method Summary | |
|---|---|
java.lang.String |
generalizePreposition(java.lang.String prep)
Generalizes a preposition. |
NT |
getDominatingClausalNode(GraphNode node)
Returns the nearest dominating clausal node of this GraphNode. |
NT |
getDominatingNominalNode(GraphNode node)
Returns the nearest dominating nominal node of this GraphNode. |
java.lang.String |
getHeadWord(GraphNode node)
Returns the head word of the constituent. |
GraphNode |
getLeftmostConstituent(GraphNode verbal_node)
Returns the leftmost constituent of the Mittelfeld that belongs to the verbal node. |
java.util.ArrayList |
getPpSignature(GraphNode node)
Returns the PP signature of the clause or NP the node belongs to. |
java.lang.String |
getPreposition(GraphNode pp)
Returns the preposition of a PP |
GraphNode |
getSubject(GraphNode node)
Returns the subject of the sentence the node belongs to. |
boolean |
hasActiveVoice(T verbal_node)
Returns true if the input node is a full verb node and occurs in an active clause. |
boolean |
haveSameArgumentDomain(GraphNode verbal_node,
GraphNode other_node)
Returns true if the verbal node has the same argument domain as the other node. |
static boolean |
isApposition(GraphNode node)
Returns true if the input node is an apposition. |
protected static boolean |
isAttributiveMarkablePronoun(T terminal)
DOCUMENT ME! |
static boolean |
isNoun(T terminal)
Defines the term noun as it is commonly understood in terms of TIGER syntax. |
static boolean |
isNpLikeNode(NT node)
Defines the term NP as it is commonly understood in terms of TIGER syntax. |
static boolean |
isPronoun(T terminal)
Returns true if the node is a personal pronoun like "er", "mir" and so forth. |
static boolean |
isSLikeNode(NT node)
Defines the term S as it is commonly understood in terms of TIGER syntax. |
protected static boolean |
isSubstitutingMarkablePronoun(T terminal)
DOCUMENT ME! |
static boolean |
isVpLikeNode(NT node)
Defines the term VP as it is commonly understood in terms of TIGER syntax. |
boolean |
occursInNominalContext(GraphNode node)
Returns true if the nearest dominating clausal node is nearer than the nearest dominating nominal node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SyntaxTools()
| Method Detail |
|---|
public java.lang.String getPreposition(GraphNode pp)
pp - DOCUMENT ME!
public java.lang.String generalizePreposition(java.lang.String prep)
prep - DOCUMENT ME!
public java.util.ArrayList getPpSignature(GraphNode node)
node - DOCUMENT ME!
public static final boolean isNpLikeNode(NT node)
node - The node to be classified as NP or not NP.
public GraphNode getLeftmostConstituent(GraphNode verbal_node)
verbal_node - DOCUMENT ME!
public java.lang.String getHeadWord(GraphNode node)
node - DOCUMENT ME!
public static final boolean isSLikeNode(NT node)
node - The node to be classified as S or not S.
public static final boolean isVpLikeNode(NT node)
node - The node to be classified as VP or not VP.
public NT getDominatingClausalNode(GraphNode node)
node - DOCUMENT ME!
public NT getDominatingNominalNode(GraphNode node)
node - DOCUMENT ME!
public boolean occursInNominalContext(GraphNode node)
node - DOCUMENT ME!
public boolean haveSameArgumentDomain(GraphNode verbal_node,
GraphNode other_node)
verbal_node - this node is supposed to be a full verb node like
"(zu) sagen", "gesagt", or
"sagte".other_node - this can be any GraphNode.
public boolean hasActiveVoice(T verbal_node)
true for "glaubt" and false for
"gerufen".
The method is meant to be applied to full verb terminals like
"sagen", "sagte", "gesagt" and so forth,
but not to non-full-verb terminals like "Peter" oder
"werden".
verbal_node - DOCUMENT ME!
public GraphNode getSubject(GraphNode node)
null if there is
no subject as in "VfL Bochum-Eintracht Frankfurt 3:2".
node - DOCUMENT ME!
protected static boolean isSubstitutingMarkablePronoun(T terminal)
terminal - DOCUMENT ME!
public static final boolean isPronoun(T terminal)
terminal - DOCUMENT ME!
protected static boolean isAttributiveMarkablePronoun(T terminal)
terminal - DOCUMENT ME!
public static final boolean isNoun(T terminal)
terminal - The node to be classified as noun or not a noun.
public static final boolean isApposition(GraphNode node)
node - The node to be classified as apposition.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||