public class SentencesLayerStored extends TextCorpusLayerStoredAbstract implements SentencesLayer
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
charOffsets |
protected List<SentenceStored> |
sentences |
static String |
XML_NAME |
| Modifier | Constructor and Description |
|---|---|
protected |
SentencesLayerStored() |
protected |
SentencesLayerStored(Boolean hasCharOffsets) |
protected |
SentencesLayerStored(TextCorpusLayersConnector connector) |
| Modifier and Type | Method and Description |
|---|---|
Sentence |
addSentence(List<Token> sentenceTokens) |
Sentence |
addSentence(List<Token> sentenceTokens,
Integer start,
Integer end) |
Sentence |
addSentence(List<Token> sentenceTokens,
int start,
int end) |
protected void |
beforeMarshal(Marshaller m) |
Sentence |
getSentence(int index) |
Sentence |
getSentence(Token token) |
Token[] |
getTokens(Sentence sentence) |
boolean |
hasCharOffsets() |
boolean |
isEmpty() |
protected void |
setLayersConnector(TextCorpusLayersConnector connector)
Should not be used directly by users.
|
int |
size() |
String |
toString() |
public static final String XML_NAME
protected List<SentenceStored> sentences
protected Boolean charOffsets
protected SentencesLayerStored()
protected SentencesLayerStored(Boolean hasCharOffsets)
protected SentencesLayerStored(TextCorpusLayersConnector connector)
protected void setLayersConnector(TextCorpusLayersConnector connector)
TextCorpusLayerStoredAbstractsetLayersConnector in class TextCorpusLayerStoredAbstractpublic boolean isEmpty()
isEmpty in interface TextCorpusLayerpublic int size()
size in interface TextCorpusLayerpublic boolean hasCharOffsets()
hasCharOffsets in interface SentencesLayerpublic Sentence getSentence(int index)
getSentence in interface SentencesLayerpublic Sentence getSentence(Token token)
getSentence in interface SentencesLayerpublic Token[] getTokens(Sentence sentence)
getTokens in interface SentencesLayerpublic Sentence addSentence(List<Token> sentenceTokens)
addSentence in interface SentencesLayerpublic Sentence addSentence(List<Token> sentenceTokens, int start, int end)
addSentence in interface SentencesLayerprotected void beforeMarshal(Marshaller m)
Copyright © 2013-2014 Department of Linguistics, Tübingen University. All Rights Reserved.