Class Phraser

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected CART cart
      The CART used for this Phrasing UtteranceProcessor.
    • Constructor Summary

      Constructors 
      Constructor Description
      Phraser​(CART cart)
      Creates a new Phrasing UtteranceProcessor with the given CART.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void processUtterance​(Utterance utterance)
      Creates a Relation.PHRASE relation, grouping Relation.WORD relations by breaks.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • cart

        protected final CART cart
        The CART used for this Phrasing UtteranceProcessor. It is passed into the constructor.
    • Constructor Detail

      • Phraser

        public Phraser​(CART cart)
        Creates a new Phrasing UtteranceProcessor with the given CART. The phrasing CART is expected to return "BB" values for big breaks.
        Parameters:
        cart - a phrasing CART
    • Method Detail

      • processUtterance

        public void processUtterance​(Utterance utterance)
                              throws ProcessException
        Creates a Relation.PHRASE relation, grouping Relation.WORD relations by breaks. Depends upon a phrasing CART that returns strings containing "BB" for big breaks.
        Specified by:
        processUtterance in interface UtteranceProcessor
        Parameters:
        utterance - the utterance to process
        Throws:
        ProcessException - if a problem is encountered during the processing of the utterance
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object