Package eu.clarin.weblicht.wlfxb.tc.xb
Class WordSplittingLayerStored
- java.lang.Object
-
- eu.clarin.weblicht.wlfxb.tc.xb.TextCorpusLayerStoredAbstract
-
- eu.clarin.weblicht.wlfxb.tc.xb.WordSplittingLayerStored
-
- All Implemented Interfaces:
TextCorpusLayer
,WordSplittingLayer
public class WordSplittingLayerStored extends TextCorpusLayerStoredAbstract implements WordSplittingLayer
- Author:
- Yana Panchenko
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
WordSplittingLayerStored()
protected
WordSplittingLayerStored(TextCorpusLayersConnector connector)
protected
WordSplittingLayerStored(String type)
-
Method Summary
Modifier and Type Method Description WordSplit
addSplit(Token token, int[] splitIndices)
WordSplit
getSplit(int index)
WordSplit
getSplit(Token token)
Token
getToken(WordSplit split)
String
getType()
boolean
isEmpty()
protected void
setLayersConnector(TextCorpusLayersConnector connector)
Should not be used directly by users.int
size()
String
toString()
-
-
-
Field Detail
-
XML_NAME
public static final String XML_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WordSplittingLayerStored
protected WordSplittingLayerStored()
-
WordSplittingLayerStored
protected WordSplittingLayerStored(String type)
-
WordSplittingLayerStored
protected WordSplittingLayerStored(TextCorpusLayersConnector connector)
-
-
Method Detail
-
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 classTextCorpusLayerStoredAbstract
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceTextCorpusLayer
-
size
public int size()
- Specified by:
size
in interfaceTextCorpusLayer
-
getType
public String getType()
- Specified by:
getType
in interfaceWordSplittingLayer
-
getSplit
public WordSplit getSplit(int index)
- Specified by:
getSplit
in interfaceWordSplittingLayer
-
getSplit
public WordSplit getSplit(Token token)
- Specified by:
getSplit
in interfaceWordSplittingLayer
-
getToken
public Token getToken(WordSplit split)
- Specified by:
getToken
in interfaceWordSplittingLayer
-
addSplit
public WordSplit addSplit(Token token, int[] splitIndices)
- Specified by:
addSplit
in interfaceWordSplittingLayer
-
-