Package eu.clarin.weblicht.wlfxb.tc.xb
Class PhoneticsLayerStored
- java.lang.Object
-
- eu.clarin.weblicht.wlfxb.tc.xb.TextCorpusLayerStoredAbstract
-
- eu.clarin.weblicht.wlfxb.tc.xb.PhoneticsLayerStored
-
- All Implemented Interfaces:
PhoneticsLayer
,TextCorpusLayer
public class PhoneticsLayerStored extends TextCorpusLayerStoredAbstract implements PhoneticsLayer
- Author:
- Yana Panchenko
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PhoneticsLayerStored()
protected
PhoneticsLayerStored(TextCorpusLayersConnector connector)
protected
PhoneticsLayerStored(String alphabet)
-
Method Summary
-
-
-
Field Detail
-
XML_NAME
public static final String XML_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PhoneticsLayerStored
protected PhoneticsLayerStored()
-
PhoneticsLayerStored
protected PhoneticsLayerStored(String alphabet)
-
PhoneticsLayerStored
protected PhoneticsLayerStored(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
-
getAlphabet
public String getAlphabet()
- Specified by:
getAlphabet
in interfacePhoneticsLayer
-
getSegment
public PhoneticsSegment getSegment(int index)
- Specified by:
getSegment
in interfacePhoneticsLayer
-
getSegment
public PhoneticsSegment getSegment(Token token)
- Specified by:
getSegment
in interfacePhoneticsLayer
-
getToken
public Token getToken(PhoneticsSegment segment)
- Specified by:
getToken
in interfacePhoneticsLayer
-
createPronunciation
public Pronunciation createPronunciation(PronunciationType type, String canonicalPronunciation, String realizedPronunciation, float onsetInSeconds, float offsetInSeconds, List<Pronunciation> children)
- Specified by:
createPronunciation
in interfacePhoneticsLayer
-
createPronunciation
public Pronunciation createPronunciation(PronunciationType type, String canonicalPronunciation, String realizedPronunciation, List<Pronunciation> children)
- Specified by:
createPronunciation
in interfacePhoneticsLayer
-
createPronunciation
public Pronunciation createPronunciation(PronunciationType type, String realizedPronunciation, float onsetInSeconds, float offsetInSeconds, List<Pronunciation> children)
- Specified by:
createPronunciation
in interfacePhoneticsLayer
-
createPronunciation
public Pronunciation createPronunciation(PronunciationType type, String realizedPronunciation, float onsetInSeconds, float offsetInSeconds)
- Specified by:
createPronunciation
in interfacePhoneticsLayer
-
createPronunciation
public Pronunciation createPronunciation(PronunciationType type, String canonicalPronunciation)
- Specified by:
createPronunciation
in interfacePhoneticsLayer
-
addChild
public Pronunciation addChild(Pronunciation parent, Pronunciation child)
- Specified by:
addChild
in interfacePhoneticsLayer
-
addSegment
public PhoneticsSegment addSegment(Pronunciation pronunciation, Token token)
- Specified by:
addSegment
in interfacePhoneticsLayer
-
addSegment
public PhoneticsSegment addSegment(List<Pronunciation> pronunciations, Token token)
- Specified by:
addSegment
in interfacePhoneticsLayer
-
-