Package ca.phon.ipa.alignment
Class PhoneAligner
- All Implemented Interfaces:
Aligner<IPAElement>
Implementation of
IndelAligner
for IPATranscript
s.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncalculatePhoneAlignment
(IPATranscript ipaTarget, IPATranscript ipaActual) Calculate phone alignmentcalculatePhoneMap
(IPATranscript ipaTarget, IPATranscript ipaActual) Deprecated.protected int
costSkip
(IPAElement ele) protected int
costSubstitute
(IPAElement ele1, IPAElement ele2) Return the similarity between two elementsvoid
setActualRep
(IPATranscript actualRep) void
setActualSyllables
(List<IPATranscript> actualSylls) void
setTargetRep
(IPATranscript targetRep) void
setTargetSyllables
(List<IPATranscript> targetSylls) Methods inherited from class ca.phon.alignment.IndelAligner
calculateAlignment, getAlignmentMap, retrieveAlignment
-
Constructor Details
-
PhoneAligner
public PhoneAligner()
-
-
Method Details
-
costSubstitute
Description copied from class:IndelAligner
Return the similarity between two elements- Specified by:
costSubstitute
in classIndelAligner<IPAElement>
- Returns:
-
costSkip
- Specified by:
costSkip
in classIndelAligner<IPAElement>
-
getTargetSyllables
-
setTargetSyllables
-
getActualSyllables
-
setActualSyllables
-
getTargetRep
-
setTargetRep
-
getActualRep
-
setActualRep
-
calculatePhoneMap
Deprecated.Calculate phone alignment. Method keep for API compatibility with older plug-ins/scripts.- Parameters:
ipaTarget
-ipaActual
-- Returns:
-
calculatePhoneAlignment
Calculate phone alignment- Parameters:
ipaTarget
-ipaActual
-- Returns:
-