Class AlignedMorphemes

java.lang.Object
ca.phon.session.alignedMorphemes.AlignedMorphemes
All Implemented Interfaces:
ExtensionProvider

@Extension(Word.class) public class AlignedMorphemes extends Object implements ExtensionProvider
Extends the aligned word class with the aligned moprheme concept.
  • Constructor Details

    • AlignedMorphemes

      public AlignedMorphemes()
  • Method Details

    • getMorphemeCount

      public int getMorphemeCount()
      Returns:
      number of morpheme positions in the aligned word
    • getAlignedWord

      public Word getAlignedWord()
    • setAlignedWord

      public void setAlignedWord(Word alignedWord)
    • getAlignedMorpheme

      public AlignedMorpheme getAlignedMorpheme(int morphemeIdx)
      Return aligned morpheme at given index
      Parameters:
      morphemeIdx -
      Returns:
      aligned morpheme for index
      Throws:
      NullPointerException
      ArrayIndexOutOfBoundsException
    • installExtension

      public void installExtension(IExtendable obj)
      Description copied from interface: ExtensionProvider
      Install extension on an extendable object.
      Specified by:
      installExtension in interface ExtensionProvider