Package eu.clarin.weblicht.wlfxb.ed.xb
Class ExternalDataStored
- java.lang.Object
-
- eu.clarin.weblicht.wlfxb.ed.xb.ExternalDataStored
-
- All Implemented Interfaces:
ExternalData
public class ExternalDataStored extends Object implements ExternalData
- Author:
- Yana Panchenko
-
-
Field Summary
Fields Modifier and Type Field Description static String
XML_NAME
static String
XML_NAMESPACE
-
Constructor Summary
Constructors Constructor Description ExternalDataStored()
-
Method Summary
-
-
-
Field Detail
-
XML_NAME
public static final String XML_NAME
- See Also:
- Constant Field Values
-
XML_NAMESPACE
public static final String XML_NAMESPACE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getLayers
public List<ExternalDataLayer> getLayers()
- Specified by:
getLayers
in interfaceExternalData
-
createSpeechSignalLayer
public SpeechSignalLayer createSpeechSignalLayer(String mimeType)
- Specified by:
createSpeechSignalLayer
in interfaceExternalData
-
createSpeechSignalLayer
public SpeechSignalLayer createSpeechSignalLayer(String mimeType, int numberOfChannels)
- Specified by:
createSpeechSignalLayer
in interfaceExternalData
-
createTokenSegmentationLayer
public TokenSegmentationLayer createTokenSegmentationLayer(String mimeType)
- Specified by:
createTokenSegmentationLayer
in interfaceExternalData
-
createPhoneticSegmentationLayer
public PhoneticSegmentationLayer createPhoneticSegmentationLayer(String mimeType)
- Specified by:
createPhoneticSegmentationLayer
in interfaceExternalData
-
createCanonicalSegmentationLayer
public CanonicalSegmentationLayer createCanonicalSegmentationLayer(String mimeType)
- Specified by:
createCanonicalSegmentationLayer
in interfaceExternalData
-
createNamedEntityModelLayer
public NamedEntityModelLayer createNamedEntityModelLayer(String mimeType, String neType, String modelType)
- Specified by:
createNamedEntityModelLayer
in interfaceExternalData
-
setSpeechSignalLayer
protected void setSpeechSignalLayer(SpeechSignalLayerStored layer)
-
getSpeechSignalLayer
public SpeechSignalLayerStored getSpeechSignalLayer()
- Specified by:
getSpeechSignalLayer
in interfaceExternalData
-
setTokenSegmentationLayer
protected void setTokenSegmentationLayer(TokenSegmentationLayerStored layer)
-
getTokenSegmentationLayer
public TokenSegmentationLayerStored getTokenSegmentationLayer()
- Specified by:
getTokenSegmentationLayer
in interfaceExternalData
-
setPhoneticSegmentationLayer
protected void setPhoneticSegmentationLayer(PhoneticSegmentationLayerStored layer)
-
getPhoneticSegmentationLayer
public PhoneticSegmentationLayerStored getPhoneticSegmentationLayer()
- Specified by:
getPhoneticSegmentationLayer
in interfaceExternalData
-
setCanonicalSegmentationLayer
protected void setCanonicalSegmentationLayer(CanonicalSegmentationLayerStored layer)
-
getCanonicalSegmentationLayer
public CanonicalSegmentationLayerStored getCanonicalSegmentationLayer()
- Specified by:
getCanonicalSegmentationLayer
in interfaceExternalData
-
setNamedEntityModelLayer
protected void setNamedEntityModelLayer(NamedEntityModelLayerStored layer)
-
getNamedEntityModelLayer
public NamedEntityModelLayerStored getNamedEntityModelLayer()
- Specified by:
getNamedEntityModelLayer
in interfaceExternalData
-
compose
public static ExternalDataStored compose(ExternalDataLayerStored... layers)
Composes the layers into one document. Normally, you should not use this method, unless you want to manually compose document from the layer pieces.- Parameters:
layers
-- Returns:
- external data composed of the provided layers
-
-