Package ca.phon.query.detectors
Class AdvancedHarmonyDetector
java.lang.Object
ca.phon.query.detectors.Detector
ca.phon.query.detectors.BasicHarmonyDetector
ca.phon.query.detectors.AdvancedHarmonyDetector
Harmony detector for query api.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAdvancedHarmonyDetector
(int type) Create a new harmony dectector of the specified type.AdvancedHarmonyDetector
(int type, ca.phon.query.detectors.AdvancedHarmonyDetector.Directionality dir) AdvancedHarmonyDetector
(int type, ca.phon.query.detectors.AdvancedHarmonyDetector.Directionality dir, FeatureSet fsShared, FeatureSet fsNeutralized) -
Method Summary
Modifier and TypeMethodDescriptionPerform detection.int
ca.phon.query.detectors.AdvancedHarmonyDetector.Directionality
ca.phon.query.detectors.AdvancedHarmonyDetector.HarmonyType
getType()
void
setAbsentNeutralizedFeatures
(FeatureSet absentNeutralizedFeatures) void
setAbsentSharedFeatures
(FeatureSet absentSharedFeatures) void
setDirection
(int directionality) void
setDirectionality
(ca.phon.query.detectors.AdvancedHarmonyDetector.Directionality directionality) void
setNeutralizedFeatures
(FeatureSet neutralizedFeatures) void
setSharedFeatures
(FeatureSet sharedFeatures) void
setType
(ca.phon.query.detectors.AdvancedHarmonyDetector.HarmonyType type) Methods inherited from class ca.phon.query.detectors.BasicHarmonyDetector
getNeutralized, isConsonants, performDetection, setConsonants
-
Constructor Details
-
AdvancedHarmonyDetector
public AdvancedHarmonyDetector(int type) Create a new harmony dectector of the specified type.- Parameters:
type
- 0 for consonant harmony, 1 for vowel
-
AdvancedHarmonyDetector
public AdvancedHarmonyDetector(int type, ca.phon.query.detectors.AdvancedHarmonyDetector.Directionality dir) -
AdvancedHarmonyDetector
public AdvancedHarmonyDetector(int type, ca.phon.query.detectors.AdvancedHarmonyDetector.Directionality dir, FeatureSet fsShared, FeatureSet fsNeutralized)
-
-
Method Details
-
detect
Description copied from class:Detector
Perform detection. -
getType
public ca.phon.query.detectors.AdvancedHarmonyDetector.HarmonyType getType() -
setType
public void setType(ca.phon.query.detectors.AdvancedHarmonyDetector.HarmonyType type) -
getDirectionality
public ca.phon.query.detectors.AdvancedHarmonyDetector.Directionality getDirectionality() -
setDirectionality
public void setDirectionality(ca.phon.query.detectors.AdvancedHarmonyDetector.Directionality directionality) -
getAbsentNeutralizedFeatures
-
setAbsentNeutralizedFeatures
-
getDirection
public int getDirection() -
setDirection
public void setDirection(int directionality) -
getNeutralizedFeatures
-
setNeutralizedFeatures
-