Package eu.clarin.weblicht.wlfxb.tc.xb
Class PosTagsLayerStored
- java.lang.Object
-
- eu.clarin.weblicht.wlfxb.tc.xb.TextCorpusLayerStoredAbstract
-
- eu.clarin.weblicht.wlfxb.tc.xb.PosTagsLayerStored
-
- All Implemented Interfaces:
PosTagsLayer,TextCorpusLayer
public class PosTagsLayerStored extends TextCorpusLayerStoredAbstract implements PosTagsLayer
- Author:
- Yana Panchenko
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPosTagsLayerStored()protectedPosTagsLayerStored(TextCorpusLayersConnector connector)protectedPosTagsLayerStored(String tagset)
-
Method Summary
Modifier and Type Method Description PosTagaddTag(String tagString, Token tagToken)PosTagaddTag(String tagString, List<Token> tagTokens)PosTaggetTag(int index)PosTaggetTag(Token token)StringgetTagset()Token[]getTokens(PosTag tag)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
-
PosTagsLayerStored
protected PosTagsLayerStored()
-
PosTagsLayerStored
protected PosTagsLayerStored(String tagset)
-
PosTagsLayerStored
protected PosTagsLayerStored(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 interfacePosTagsLayer
-
getTag
public PosTag getTag(int index)
- Specified by:
getTagin interfacePosTagsLayer
-
getTag
public PosTag getTag(Token token)
- Specified by:
getTagin interfacePosTagsLayer
-
getTokens
public Token[] getTokens(PosTag tag)
- Specified by:
getTokensin interfacePosTagsLayer
-
addTag
public PosTag addTag(String tagString, Token tagToken)
- Specified by:
addTagin interfacePosTagsLayer
-
addTag
public PosTag addTag(String tagString, List<Token> tagTokens)
- Specified by:
addTagin interfacePosTagsLayer
-
-