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
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)
createEmptyToken
Token createEmptyToken(String tokenString)
addParse
DependencyParse addParse(List<Dependency> dependencies)
hasEmptyTokens
boolean hasEmptyTokens()
hasMultipleGovernors
boolean hasMultipleGovernors()
Copyright © 2013-2014 Department of Linguistics, Tübingen University. All Rights Reserved.