Package eu.clarin.weblicht.wlfxb.tc.api
Interface DependencyParsingLayer
-
- All Superinterfaces:
TextCorpusLayer
- All Known Implementing Classes:
DependencyParsingLayerStored
public interface DependencyParsingLayer extends TextCorpusLayer
The DependencyParsingLayer annotates dependency relations between tokens. Each dependency annotation contains a reference to a token, or sequence of tokens, that is in a dependent role in the given relation, as well as a reference to a token, or sequence of tokens, that is in the governor role in the given relation. Optionally, the function of the dependent-governor relation is specified. In some cases, such as in the case of root dependency, the governor can be omitted. Additionally, the dependency layer specifies: a tagset for dependency function tags, whether empty tokens can be inserted into the dependency parse, whether a dependent can have more than one governor in the parse.- Author:
- Yana Panchenko
-
-
Method Summary
Modifier and Type Method Description DependencyParseaddParse(List<Dependency> dependencies)DependencycreateDependency(Token dependent)DependencycreateDependency(Token dependent, Token governor)DependencycreateDependency(String function, Token dependent)DependencycreateDependency(String function, Token dependent, Token governor)DependencycreateDependency(String function, List<Token> dependent)DependencycreateDependency(String function, List<Token> dependent, List<Token> governor)DependencycreateDependency(List<Token> dependent)DependencycreateDependency(List<Token> dependent, List<Token> governor)TokencreateEmptyToken(String tokenString)Token[]getDependentTokens(Dependency dependency)Token[]getGovernorTokens(Dependency dependency)DependencyParsegetParse(int index)StringgetTagset()booleanhasEmptyTokens()booleanhasMultipleGovernors()-
Methods inherited from interface eu.clarin.weblicht.wlfxb.tc.api.TextCorpusLayer
isEmpty, size
-
-
-
-
Method Detail
-
getTagset
String getTagset()
-
getParse
DependencyParse getParse(int index)
-
getGovernorTokens
Token[] getGovernorTokens(Dependency dependency)
-
getDependentTokens
Token[] getDependentTokens(Dependency dependency)
-
createDependency
Dependency createDependency(String function, List<Token> dependent, List<Token> governor)
-
createDependency
Dependency createDependency(String function, List<Token> dependent)
-
createDependency
Dependency createDependency(List<Token> dependent, List<Token> governor)
-
createDependency
Dependency createDependency(List<Token> dependent)
-
createDependency
Dependency createDependency(String function, Token dependent, Token governor)
-
createDependency
Dependency createDependency(String function, Token dependent)
-
createDependency
Dependency createDependency(Token dependent, Token governor)
-
createDependency
Dependency createDependency(Token dependent)
-
addParse
DependencyParse addParse(List<Dependency> dependencies)
-
hasEmptyTokens
boolean hasEmptyTokens()
-
hasMultipleGovernors
boolean hasMultipleGovernors()
-
-