Class SyntaxGeneralizer
java.lang.Object
org.episteme.social.linguistics.loaders.tigerxml.tools.SyntaxGeneralizer
The purpose of this class is to generalize over some distinctions made
in Tiger Syntax. The distinctions concern phrase type, part of speech and
grammatical function.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDaughtersByGeneralLabel(NT node, String gen_label) Returns a List of the daughter nodes with a given general edge label.getDescendantsByGeneralLabel(NT node, String gen_label) Returns a List of the descendant nodes with a given general edge label.getDominatingNode(GraphNode node, String gen_cat) Returns the nearest dominating node that has the general category gen_cat, and is not identical with the input node itself.protected StringgetGeneralLabel(String label) Generalizes an edge label using the internal mapping.protected StringgetGeneralTag(String tag) Generalizes a POS tag using the internal mapping.protected StringgetGeneralType(String type) Generalizes a phrase type using the internal mapping.Returns the (general) grammatical function of this node.getPhraseType(NT node) Returns the (general) phrase type of this node.Returns the (general) POS tag of this terminal.protected booleanChecks if an item (type, label, or tag) matches a specific general category.booleanisDominatedBy(GraphNode node, String gen_cat) Returns true if there is a dominating node that has the general category "cat"
-
Constructor Details
-
SyntaxGeneralizer
-
SyntaxGeneralizer
public SyntaxGeneralizer()Creates a SyntaxGeneralizer object with predefinned generalization settings.
-
-
Method Details
-
getGeneralType
-
getGeneralTag
-
getGeneralLabel
-
isCaseOf
Checks if an item (type, label, or tag) matches a specific general category.- Parameters:
item- the item to checkgeneral_item- the general category to match against- Returns:
- true if the item belongs to the general category, false otherwise
-
getDaughtersByGeneralLabel
-
getDescendantsByGeneralLabel
-
isDominatedBy
-
getDominatingNode
-
getGrammaticalFunction
-
getPhraseType
-
getPos
-