Class FeatureProcessors.PositionType

  • All Implemented Interfaces:
    FeatureProcessor
    Enclosing class:
    FeatureProcessors

    public static class FeatureProcessors.PositionType
    extends java.lang.Object
    implements FeatureProcessor
    Classifies the the syllable as single, initial, mid or final. This is a feature processor. A feature processor takes an item, performs some sort of processing on the item and returns an object.
    • Constructor Summary

      Constructors 
      Constructor Description
      PositionType()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String process​(Item item)
      Performs some processing on the given item.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PositionType

        public PositionType()
    • Method Detail

      • process

        public java.lang.String process​(Item item)
                                 throws ProcessException
        Performs some processing on the given item.
        Specified by:
        process in interface FeatureProcessor
        Parameters:
        item - the item to process
        Returns:
        classifies the syllable as "single", "final", "initial" or "mid"
        Throws:
        ProcessException - if an exception occurred during the processing