Class AdvancedHarmonyDetector


public class AdvancedHarmonyDetector extends BasicHarmonyDetector
Harmony detector for query api.
  • 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

      public Collection<DetectorResult> detect(PhoneMap pm)
      Description copied from class: Detector
      Perform detection.
      Overrides:
      detect in class Detector
    • 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)
    • getAbsentSharedFeatures

      public FeatureSet getAbsentSharedFeatures()
    • setAbsentSharedFeatures

      public void setAbsentSharedFeatures(FeatureSet absentSharedFeatures)
    • getAbsentNeutralizedFeatures

      public FeatureSet getAbsentNeutralizedFeatures()
    • setAbsentNeutralizedFeatures

      public void setAbsentNeutralizedFeatures(FeatureSet absentNeutralizedFeatures)
    • getDirection

      public int getDirection()
    • setDirection

      public void setDirection(int directionality)
    • getSharedFeatures

      public FeatureSet getSharedFeatures()
    • setSharedFeatures

      public void setSharedFeatures(FeatureSet sharedFeatures)
    • getNeutralizedFeatures

      public FeatureSet getNeutralizedFeatures()
    • setNeutralizedFeatures

      public void setNeutralizedFeatures(FeatureSet neutralizedFeatures)