Class FeatureProcessors


  • public class FeatureProcessors
    extends java.lang.Object
    Provides the set of feature processors that are used by this language as part of the CART processing.
    • Method Detail

      • getPhoneFeature

        public static java.lang.String getPhoneFeature​(Item item,
                                                       java.lang.String featureName)
        Gets the phoneset feature with the given name
        Parameters:
        item - item the phoneme of interest
        featureName - the feature of interest
        Returns:
        the phone feature for the item
      • wordBreak

        public static java.lang.String wordBreak​(Item item)
                                          throws ProcessException
        Classifies the type of word break
        Parameters:
        item - the item to process
        Returns:
        "4" for a big break, "3" for a break; otherwise "1"
        Throws:
        ProcessException - if an exception occurred during the processing
      • wordPunc

        public static java.lang.String wordPunc​(Item item)
                                         throws ProcessException
        Gets the punctuation associated with the word
        Parameters:
        item - the word to process
        Returns:
        the punctuation associated with the word
        Throws:
        ProcessException - if an exception occurred during the processing