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 protected
DiscourseConnectivesLayerStored()
protected
DiscourseConnectivesLayerStored(TextCorpusLayersConnector connector)
protected
DiscourseConnectivesLayerStored(String typesTagset)
-
Method Summary
Modifier and Type Method Description DiscourseConnective
addConnective(List<Token> connectiveTokens)
DiscourseConnective
addConnective(List<Token> connectiveTokens, String semanticType)
DiscourseConnective
getConnective(int index)
DiscourseConnective
getConnective(Token token)
Token[]
getTokens(DiscourseConnective connective)
String
getTypesTagset()
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
-
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: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
-
getTypesTagset
public String getTypesTagset()
- Specified by:
getTypesTagset
in interfaceDiscourseConnectivesLayer
-
getConnective
public DiscourseConnective getConnective(int index)
- Specified by:
getConnective
in interfaceDiscourseConnectivesLayer
-
getConnective
public DiscourseConnective getConnective(Token token)
- Specified by:
getConnective
in interfaceDiscourseConnectivesLayer
-
getTokens
public Token[] getTokens(DiscourseConnective connective)
- Specified by:
getTokens
in interfaceDiscourseConnectivesLayer
-
addConnective
public DiscourseConnective addConnective(List<Token> connectiveTokens)
- Specified by:
addConnective
in interfaceDiscourseConnectivesLayer
-
addConnective
public DiscourseConnective addConnective(List<Token> connectiveTokens, String semanticType)
- Specified by:
addConnective
in interfaceDiscourseConnectivesLayer
-
-