Package eu.clarin.weblicht.wlfxb.tc.xb
Class OrthographyLayerStored
- java.lang.Object
-
- eu.clarin.weblicht.wlfxb.tc.xb.TextCorpusLayerStoredAbstract
-
- eu.clarin.weblicht.wlfxb.tc.xb.OrthographyLayerStored
-
- All Implemented Interfaces:
OrthographyLayer
,TextCorpusLayer
public class OrthographyLayerStored extends TextCorpusLayerStoredAbstract implements OrthographyLayer
- Author:
- Yana Panchenko
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
OrthographyLayerStored()
protected
OrthographyLayerStored(TextCorpusLayersConnector connector)
-
Method Summary
Modifier and Type Method Description OrthCorrection
addCorrection(String correctionString, Token correctedToken, CorrectionOperation operation)
OrthCorrection
addCorrection(String correctionString, List<Token> correctedTokens, CorrectionOperation operation)
OrthCorrection
getCorrection(int index)
OrthCorrection
getCorrection(Token token)
Token[]
getTokens(OrthCorrection correction)
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
-
OrthographyLayerStored
protected OrthographyLayerStored()
-
OrthographyLayerStored
protected OrthographyLayerStored(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
-
getCorrection
public OrthCorrection getCorrection(int index)
- Specified by:
getCorrection
in interfaceOrthographyLayer
-
getCorrection
public OrthCorrection getCorrection(Token token)
- Specified by:
getCorrection
in interfaceOrthographyLayer
-
getTokens
public Token[] getTokens(OrthCorrection correction)
- Specified by:
getTokens
in interfaceOrthographyLayer
-
addCorrection
public OrthCorrection addCorrection(String correctionString, Token correctedToken, CorrectionOperation operation)
- Specified by:
addCorrection
in interfaceOrthographyLayer
-
addCorrection
public OrthCorrection addCorrection(String correctionString, List<Token> correctedTokens, CorrectionOperation operation)
- Specified by:
addCorrection
in interfaceOrthographyLayer
-
-