eu.clarin.weblicht.wlfxb.tc.api
Interface SentencesLayer
- All Superinterfaces:
- TextCorpusLayer
- All Known Implementing Classes:
- SentencesLayerStored
public interface SentencesLayer
- extends TextCorpusLayer
The SentencesLayer represents sentence boundary annotations. Each sentence
element enumerates token identifiers of tokens that belong to this sentence.
Optionally, a sentence can have start and end character offset positions in
relation to the character string in the text layer.
- Author:
- Yana Panchenko
hasCharOffsets
boolean hasCharOffsets()
getSentence
Sentence getSentence(int index)
getSentence
Sentence getSentence(Token token)
getTokens
Token[] getTokens(Sentence sentence)
addSentence
Sentence addSentence(List<Token> tokens)
addSentence
Sentence addSentence(List<Token> tokens,
int start,
int end)
Copyright © 2013-2014 Department of Linguistics, Tübingen University. All Rights Reserved.