java.lang.Object
com.github.szgabsz91.morpher.languagehandlers.hunmorph.impl.hyphenation.PyphenHyphenator
All Implemented Interfaces:
com.github.szgabsz91.morpher.core.io.IConvertable<HyphenatorMessage>, IHyphenator, AutoCloseable

public class PyphenHyphenator extends Object implements IHyphenator
Default IHyphenator implementation.
  • Constructor Details

    • PyphenHyphenator

      public PyphenHyphenator()
      Constructor that creates the temporary Python file.
  • Method Details

    • close

      public void close()
      Deletes the temporary Python file.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface IHyphenator
    • hyphenate

      public String[] hyphenate(com.github.szgabsz91.morpher.core.model.Word input)
      Returns a String array that contains each syllable of the input word.
      Specified by:
      hyphenate in interface IHyphenator
      Parameters:
      input - the input word
      Returns:
      the String array containing the syllables
    • toMessage

      public HyphenatorMessage toMessage()
      Returns an empty HyphenatorMessage.
      Specified by:
      toMessage in interface com.github.szgabsz91.morpher.core.io.IConvertable<HyphenatorMessage>
    • fromMessage

      public void fromMessage(HyphenatorMessage hyphenatorMessage)
      Does nothing.
      Specified by:
      fromMessage in interface com.github.szgabsz91.morpher.core.io.IConvertable<HyphenatorMessage>
    • fromMessage

      public void fromMessage(com.google.protobuf.Any message)
      Does nothing.
      Specified by:
      fromMessage in interface com.github.szgabsz91.morpher.core.io.IConvertable<HyphenatorMessage>