eu.clarin.weblicht.wlfxb.tc.xb
Class SentencesLayerStored
java.lang.Object
eu.clarin.weblicht.wlfxb.tc.xb.TextCorpusLayerStoredAbstract
eu.clarin.weblicht.wlfxb.tc.xb.SentencesLayerStored
- All Implemented Interfaces:
- SentencesLayer, TextCorpusLayer
public class SentencesLayerStored
- extends TextCorpusLayerStoredAbstract
- implements SentencesLayer
- Author:
- Yana Panchenko
XML_NAME
public static final String XML_NAME
- See Also:
- Constant Field Values
sentences
protected List<SentenceStored> sentences
charOffsets
protected Boolean charOffsets
SentencesLayerStored
protected SentencesLayerStored()
SentencesLayerStored
protected SentencesLayerStored(Boolean hasCharOffsets)
SentencesLayerStored
protected SentencesLayerStored(TextCorpusLayersConnector connector)
setLayersConnector
protected void setLayersConnector(TextCorpusLayersConnector connector)
- Description copied from class:
TextCorpusLayerStoredAbstract
- Should not be used directly by users. Should be extended by all
implementations of TextCorpusLayers, as they might depend on other layers
and therefore be able to get referenced/referencing information.
- Specified by:
setLayersConnector in class TextCorpusLayerStoredAbstract
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface TextCorpusLayer
size
public int size()
- Specified by:
size in interface TextCorpusLayer
hasCharOffsets
public boolean hasCharOffsets()
- Specified by:
hasCharOffsets in interface SentencesLayer
getSentence
public Sentence getSentence(int index)
- Specified by:
getSentence in interface SentencesLayer
getSentence
public Sentence getSentence(Token token)
- Specified by:
getSentence in interface SentencesLayer
getTokens
public Token[] getTokens(Sentence sentence)
- Specified by:
getTokens in interface SentencesLayer
addSentence
public Sentence addSentence(List<Token> sentenceTokens)
- Specified by:
addSentence in interface SentencesLayer
addSentence
public Sentence addSentence(List<Token> sentenceTokens,
int start,
int end)
- Specified by:
addSentence in interface SentencesLayer
addSentence
public Sentence addSentence(List<Token> sentenceTokens,
Integer start,
Integer end)
beforeMarshal
protected boolean beforeMarshal(Marshaller m)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2013 Department of Linguistics, Tübingen University. All Rights Reserved.