eu.clarin.weblicht.wlfxb.tc.api
Interface TokensLayer
- All Superinterfaces:
- TextCorpusLayer
- All Known Implementing Classes:
- TokensLayerStored
public interface TokensLayer
- extends TextCorpusLayer
The TokensLayer is composed of token elements, each having a unique
identifier and token string value. Optionally, each token can reference its
start and end character offset position in relation to the character string
in the text layer. The TokensLayer is the main anchor layer
among layers of the TextCorpus, i.e. all other layers (with the
exception of the text layer) directly or indirectly (via other layers)
reference tokens.
- Author:
- Yana Panchenko
getToken
Token getToken(int index)
getToken
Token getToken(String tokenId)
hasCharOffsets
boolean hasCharOffsets()
addToken
Token addToken(String tokenString)
addToken
Token addToken(String tokenString,
String tokenId)
addToken
Token addToken(String tokenString,
long start,
long end)
addToken
Token addToken(String tokenString,
long start,
long end,
String tokenId)
Copyright © 2013-2014 Department of Linguistics, Tübingen University. All Rights Reserved.