Package 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
-
-
Method Summary
Modifier and Type Method Description Sentence
addSentence(List<Token> tokens)
Sentence
addSentence(List<Token> tokens, int start, int end)
Sentence
getSentence(int index)
Sentence
getSentence(Token token)
Token[]
getTokens(Sentence sentence)
boolean
hasCharOffsets()
-
Methods inherited from interface eu.clarin.weblicht.wlfxb.tc.api.TextCorpusLayer
isEmpty, size
-
-
-
-
Method Detail
-
hasCharOffsets
boolean hasCharOffsets()
-
getSentence
Sentence getSentence(int index)
-
-