Package eu.clarin.weblicht.wlfxb.tc.xb
Class MorphologyLayerStored
- java.lang.Object
-
- eu.clarin.weblicht.wlfxb.tc.xb.TextCorpusLayerStoredAbstract
-
- eu.clarin.weblicht.wlfxb.tc.xb.MorphologyLayerStored
-
- All Implemented Interfaces:
MorphologyLayer,TextCorpusLayer
public class MorphologyLayerStored extends TextCorpusLayerStoredAbstract implements MorphologyLayer
- Author:
- Yana Panchenko
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMorphologyLayerStored()protectedMorphologyLayerStored(TextCorpusLayersConnector connector)protectedMorphologyLayerStored(Boolean hasSegmentation)protectedMorphologyLayerStored(Boolean hasSegmentation, Boolean hasCharOffsets)protectedMorphologyLayerStored(String tagset)protectedMorphologyLayerStored(String tagset, Boolean hasSegmentation)protectedMorphologyLayerStored(String tagset, Boolean hasSegmentation, Boolean hasCharOffsets)
-
Method Summary
-
-
-
Field Detail
-
XML_NAME
public static final String XML_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MorphologyLayerStored
protected MorphologyLayerStored()
-
MorphologyLayerStored
protected MorphologyLayerStored(String tagset)
-
MorphologyLayerStored
protected MorphologyLayerStored(Boolean hasSegmentation)
-
MorphologyLayerStored
protected MorphologyLayerStored(Boolean hasSegmentation, Boolean hasCharOffsets)
-
MorphologyLayerStored
protected MorphologyLayerStored(String tagset, Boolean hasSegmentation, Boolean hasCharOffsets)
-
MorphologyLayerStored
protected MorphologyLayerStored(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
-
hasSegmentation
public boolean hasSegmentation()
- Specified by:
hasSegmentationin interfaceMorphologyLayer
-
hasCharoffsets
public boolean hasCharoffsets()
- Specified by:
hasCharoffsetsin interfaceMorphologyLayer
-
getAnalysis
public MorphologyAnalysis getAnalysis(int index)
- Specified by:
getAnalysisin interfaceMorphologyLayer
-
getAnalysis
public MorphologyAnalysis getAnalysis(Token token)
- Specified by:
getAnalysisin interfaceMorphologyLayer
-
getTagset
public String getTagset()
- Specified by:
getTagsetin interfaceMorphologyLayer
-
getTokens
public Token[] getTokens(MorphologyAnalysis analysis)
- Specified by:
getTokensin interfaceMorphologyLayer
-
addAnalysis
public MorphologyAnalysis addAnalysis(Token analysedToken, List<Feature> morphologyFeatures)
- Specified by:
addAnalysisin interfaceMorphologyLayer
-
addAnalysis
public MorphologyAnalysis addAnalysis(Token analysedToken, List<Feature> morphologyFeatures, List<MorphologySegment> segments)
- Specified by:
addAnalysisin interfaceMorphologyLayer
-
addAnalysis
public MorphologyAnalysis addAnalysis(List<Token> analysedTokens, List<Feature> morphologyFeatures)
- Specified by:
addAnalysisin interfaceMorphologyLayer
-
addAnalysis
public MorphologyAnalysis addAnalysis(List<Token> analysedTokens, List<Feature> morphologyFeatures, List<MorphologySegment> segments)
- Specified by:
addAnalysisin interfaceMorphologyLayer
-
addMultipleAnalysis
public MorphologyAnalysis addMultipleAnalysis(Token analysedTokens, List<MorphologyTagStored> tags)
- Specified by:
addMultipleAnalysisin interfaceMorphologyLayer
-
addMultipleAnalysis
public MorphologyAnalysis addMultipleAnalysis(List<Token> analysedTokens, List<MorphologyTagStored> tags)
- Specified by:
addMultipleAnalysisin interfaceMorphologyLayer
-
addMultipleAnalysis
public MorphologyAnalysis addMultipleAnalysis(Token analysedTokens, List<MorphologyTagStored> tags, List<MorphologySegment> segments)
- Specified by:
addMultipleAnalysisin interfaceMorphologyLayer
-
addMultipleAnalysis
public MorphologyAnalysis addMultipleAnalysis(List<Token> analysedTokens, List<MorphologyTagStored> tags, List<MorphologySegment> segments)
- Specified by:
addMultipleAnalysisin interfaceMorphologyLayer
-
createTag
public MorphologyTagStored createTag(Double score, List<Feature> morphologyFeatures)
- Specified by:
createTagin interfaceMorphologyLayer
-
createFeature
public Feature createFeature(String name, String value)
- Specified by:
createFeaturein interfaceMorphologyLayer
-
createFeature
public Feature createFeature(String name, List<Feature> subfeatures)
- Specified by:
createFeaturein interfaceMorphologyLayer
-
createSegment
public MorphologySegment createSegment(String type, String category, String function, Integer start, Integer end, String value)
- Specified by:
createSegmentin interfaceMorphologyLayer
-
createSegment
public MorphologySegment createSegment(String type, String category, String function, Integer start, Integer end, List<MorphologySegment> subsegments)
- Specified by:
createSegmentin interfaceMorphologyLayer
-
beforeMarshal
protected void beforeMarshal(Marshaller m)
-
-