Package eu.clarin.weblicht.wlfxb.tc.xb
Class DiscourseConnectivesLayerStored
- java.lang.Object
-
- eu.clarin.weblicht.wlfxb.tc.xb.TextCorpusLayerStoredAbstract
-
- eu.clarin.weblicht.wlfxb.tc.xb.DiscourseConnectivesLayerStored
-
- All Implemented Interfaces:
DiscourseConnectivesLayer,TextCorpusLayer
public class DiscourseConnectivesLayerStored extends TextCorpusLayerStoredAbstract implements DiscourseConnectivesLayer
- Author:
- Yana Panchenko
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDiscourseConnectivesLayerStored()protectedDiscourseConnectivesLayerStored(TextCorpusLayersConnector connector)protectedDiscourseConnectivesLayerStored(String typesTagset)
-
Method Summary
Modifier and Type Method Description DiscourseConnectiveaddConnective(List<Token> connectiveTokens)DiscourseConnectiveaddConnective(List<Token> connectiveTokens, String semanticType)DiscourseConnectivegetConnective(int index)DiscourseConnectivegetConnective(Token token)Token[]getTokens(DiscourseConnective connective)StringgetTypesTagset()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
-
DiscourseConnectivesLayerStored
protected DiscourseConnectivesLayerStored()
-
DiscourseConnectivesLayerStored
protected DiscourseConnectivesLayerStored(String typesTagset)
-
DiscourseConnectivesLayerStored
protected DiscourseConnectivesLayerStored(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
-
getTypesTagset
public String getTypesTagset()
- Specified by:
getTypesTagsetin interfaceDiscourseConnectivesLayer
-
getConnective
public DiscourseConnective getConnective(int index)
- Specified by:
getConnectivein interfaceDiscourseConnectivesLayer
-
getConnective
public DiscourseConnective getConnective(Token token)
- Specified by:
getConnectivein interfaceDiscourseConnectivesLayer
-
getTokens
public Token[] getTokens(DiscourseConnective connective)
- Specified by:
getTokensin interfaceDiscourseConnectivesLayer
-
addConnective
public DiscourseConnective addConnective(List<Token> connectiveTokens)
- Specified by:
addConnectivein interfaceDiscourseConnectivesLayer
-
addConnective
public DiscourseConnective addConnective(List<Token> connectiveTokens, String semanticType)
- Specified by:
addConnectivein interfaceDiscourseConnectivesLayer
-
-