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
|
Method Summary |
MorphologyAnalysis |
addAnalysis(List<Token> analysedTokens,
List<Feature> morphologyFeatures)
|
MorphologyAnalysis |
addAnalysis(List<Token> analysedTokens,
List<Feature> morphologyFeatures,
List<MorphologySegment> segments)
|
MorphologyAnalysis |
addAnalysis(Token analysedToken,
List<Feature> morphologyFeatures)
|
MorphologyAnalysis |
addAnalysis(Token analysedToken,
List<Feature> morphologyFeatures,
List<MorphologySegment> segments)
|
protected boolean |
beforeMarshal(Marshaller m)
|
Feature |
createFeature(String name,
List<Feature> subfeatures)
|
Feature |
createFeature(String name,
String value)
|
MorphologySegment |
createSegment(String type,
String category,
String function,
Integer start,
Integer end,
List<MorphologySegment> subsegments)
|
MorphologySegment |
createSegment(String type,
String category,
String function,
Integer start,
Integer end,
String value)
|
MorphologyAnalysis |
getAnalysis(int index)
|
MorphologyAnalysis |
getAnalysis(Token token)
|
Token[] |
getTokens(MorphologyAnalysis analysis)
|
boolean |
hasCharoffsets()
|
boolean |
hasSegmentation()
|
boolean |
isEmpty()
|
protected void |
setLayersConnector(TextCorpusLayersConnector connector)
Should not be used directly by users. |
int |
size()
|
String |
toString()
|
XML_NAME
public static final String XML_NAME
- See Also:
- Constant Field Values
MorphologyLayerStored
protected MorphologyLayerStored()
MorphologyLayerStored
protected MorphologyLayerStored(Boolean hasSegmentation)
MorphologyLayerStored
protected MorphologyLayerStored(Boolean hasSegmentation,
Boolean hasCharOffsets)
MorphologyLayerStored
protected MorphologyLayerStored(TextCorpusLayersConnector connector)
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 class TextCorpusLayerStoredAbstract
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface TextCorpusLayer
size
public int size()
- Specified by:
size in interface TextCorpusLayer
hasSegmentation
public boolean hasSegmentation()
- Specified by:
hasSegmentation in interface MorphologyLayer
hasCharoffsets
public boolean hasCharoffsets()
- Specified by:
hasCharoffsets in interface MorphologyLayer
getAnalysis
public MorphologyAnalysis getAnalysis(int index)
- Specified by:
getAnalysis in interface MorphologyLayer
getAnalysis
public MorphologyAnalysis getAnalysis(Token token)
- Specified by:
getAnalysis in interface MorphologyLayer
getTokens
public Token[] getTokens(MorphologyAnalysis analysis)
- Specified by:
getTokens in interface MorphologyLayer
addAnalysis
public MorphologyAnalysis addAnalysis(Token analysedToken,
List<Feature> morphologyFeatures)
- Specified by:
addAnalysis in interface MorphologyLayer
addAnalysis
public MorphologyAnalysis addAnalysis(Token analysedToken,
List<Feature> morphologyFeatures,
List<MorphologySegment> segments)
- Specified by:
addAnalysis in interface MorphologyLayer
addAnalysis
public MorphologyAnalysis addAnalysis(List<Token> analysedTokens,
List<Feature> morphologyFeatures)
- Specified by:
addAnalysis in interface MorphologyLayer
addAnalysis
public MorphologyAnalysis addAnalysis(List<Token> analysedTokens,
List<Feature> morphologyFeatures,
List<MorphologySegment> segments)
- Specified by:
addAnalysis in interface MorphologyLayer
createFeature
public Feature createFeature(String name,
String value)
- Specified by:
createFeature in interface MorphologyLayer
createFeature
public Feature createFeature(String name,
List<Feature> subfeatures)
- Specified by:
createFeature in interface MorphologyLayer
createSegment
public MorphologySegment createSegment(String type,
String category,
String function,
Integer start,
Integer end,
String value)
- Specified by:
createSegment in interface MorphologyLayer
createSegment
public MorphologySegment createSegment(String type,
String category,
String function,
Integer start,
Integer end,
List<MorphologySegment> subsegments)
- Specified by:
createSegment in interface MorphologyLayer
beforeMarshal
protected boolean beforeMarshal(Marshaller m)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2013 Department of Linguistics, Tübingen University. All Rights Reserved.