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
 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)

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.