Package eu.clarin.weblicht.wlfxb.lx.xb
Class PosTagsLayerStored
- java.lang.Object
-
- eu.clarin.weblicht.wlfxb.lx.xb.LexiconLayerStoredAbstract
-
- eu.clarin.weblicht.wlfxb.lx.xb.PosTagsLayerStored
-
- All Implemented Interfaces:
LexiconLayer
,PosTagsLayer
public class PosTagsLayerStored extends LexiconLayerStoredAbstract implements PosTagsLayer
- Author:
- Yana Panchenko
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PosTagsLayerStored()
protected
PosTagsLayerStored(LexiconLayersConnector connector)
protected
PosTagsLayerStored(String tagset)
-
Method Summary
Modifier and Type Method Description PosTag
addTag(String tagString, Entry tagEntry)
Entry
getEntry(PosTag tag)
PosTag
getTag(int index)
PosTag[]
getTags(Entry entry)
String
getTagset()
boolean
isEmpty()
protected void
setLayersConnector(LexiconLayersConnector 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
-
PosTagsLayerStored
protected PosTagsLayerStored()
-
PosTagsLayerStored
protected PosTagsLayerStored(String tagset)
-
PosTagsLayerStored
protected PosTagsLayerStored(LexiconLayersConnector connector)
-
-
Method Detail
-
setLayersConnector
protected void setLayersConnector(LexiconLayersConnector connector)
Description copied from class:LexiconLayerStoredAbstract
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 classLexiconLayerStoredAbstract
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceLexiconLayer
-
size
public int size()
- Specified by:
size
in interfaceLexiconLayer
-
getTagset
public String getTagset()
- Specified by:
getTagset
in interfacePosTagsLayer
-
getTag
public PosTag getTag(int index)
- Specified by:
getTag
in interfacePosTagsLayer
-
getTags
public PosTag[] getTags(Entry entry)
- Specified by:
getTags
in interfacePosTagsLayer
-
getEntry
public Entry getEntry(PosTag tag)
- Specified by:
getEntry
in interfacePosTagsLayer
-
addTag
public PosTag addTag(String tagString, Entry tagEntry)
- Specified by:
addTag
in interfacePosTagsLayer
-
-