Class PyphenHyphenator
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
Default
IHyphenator implementation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deletes the temporary Python file.voidfromMessage(HyphenatorMessage hyphenatorMessage) Does nothing.voidfromMessage(com.google.protobuf.Any message) Does nothing.String[]hyphenate(com.github.szgabsz91.morpher.core.model.Word input) Returns a String array that contains each syllable of the input word.Returns an emptyHyphenatorMessage.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.szgabsz91.morpher.languagehandlers.hunmorph.impl.hyphenation.IHyphenator
getLastSyllable
-
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:
closein interfaceAutoCloseable- Specified by:
closein interfaceIHyphenator
-
hyphenate
Returns a String array that contains each syllable of the input word.- Specified by:
hyphenatein interfaceIHyphenator- Parameters:
input- the input word- Returns:
- the String array containing the syllables
-
toMessage
Returns an emptyHyphenatorMessage.- Specified by:
toMessagein interfacecom.github.szgabsz91.morpher.core.io.IConvertable<HyphenatorMessage>
-
fromMessage
Does nothing.- Specified by:
fromMessagein interfacecom.github.szgabsz91.morpher.core.io.IConvertable<HyphenatorMessage>
-
fromMessage
public void fromMessage(com.google.protobuf.Any message) Does nothing.- Specified by:
fromMessagein interfacecom.github.szgabsz91.morpher.core.io.IConvertable<HyphenatorMessage>
-