Package eu.clarin.weblicht.wlfxb.tc.xb
Class ChunksLayerStored
- java.lang.Object
-
- eu.clarin.weblicht.wlfxb.tc.xb.TextCorpusLayerStoredAbstract
-
- eu.clarin.weblicht.wlfxb.tc.xb.ChunksLayerStored
-
- All Implemented Interfaces:
ChunksLayer,TextCorpusLayer
public class ChunksLayerStored extends TextCorpusLayerStoredAbstract implements ChunksLayer
- Author:
- felahi
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedChunksLayerStored()protectedChunksLayerStored(TextCorpusLayersConnector connector)protectedChunksLayerStored(String tagset)
-
Method Summary
Modifier and Type Method Description ChunkaddChunk(LinkedHashMap<String,String> chunkAttributes, Token chunkToken)ChunkaddChunk(LinkedHashMap<String,String> chunkAttributes, List<Token> chunkTokens)ChunkgetChunk(int index)ChunkgetChunk(Token token)List<Chunk>getChunks(Token token)Set<String>getFoundTypes()StringgetTagset()Token[]getTokens(Chunk chunk)booleanisEmpty()protected voidsetLayersConnector(TextCorpusLayersConnector connector)Should not be used directly by users.intsize()StringtoString()
-
-
-
Field Detail
-
XML_NAME
public static final String XML_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ChunksLayerStored
protected ChunksLayerStored()
-
ChunksLayerStored
protected ChunksLayerStored(String tagset)
-
ChunksLayerStored
protected ChunksLayerStored(TextCorpusLayersConnector connector)
-
-
Method Detail
-
setLayersConnector
protected void setLayersConnector(TextCorpusLayersConnector connector)
Description copied from class:TextCorpusLayerStoredAbstractShould 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:
setLayersConnectorin classTextCorpusLayerStoredAbstract
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceTextCorpusLayer
-
size
public int size()
- Specified by:
sizein interfaceTextCorpusLayer
-
getTagset
public String getTagset()
- Specified by:
getTagsetin interfaceChunksLayer
-
getChunk
public Chunk getChunk(int index)
- Specified by:
getChunkin interfaceChunksLayer
-
getChunk
public Chunk getChunk(Token token)
- Specified by:
getChunkin interfaceChunksLayer
-
getChunks
public List<Chunk> getChunks(Token token)
- Specified by:
getChunksin interfaceChunksLayer
-
getTokens
public Token[] getTokens(Chunk chunk)
- Specified by:
getTokensin interfaceChunksLayer
-
addChunk
public Chunk addChunk(LinkedHashMap<String,String> chunkAttributes, Token chunkToken)
- Specified by:
addChunkin interfaceChunksLayer
-
addChunk
public Chunk addChunk(LinkedHashMap<String,String> chunkAttributes, List<Token> chunkTokens)
- Specified by:
addChunkin interfaceChunksLayer
-
getFoundTypes
public Set<String> getFoundTypes()
- Specified by:
getFoundTypesin interfaceChunksLayer
-
-