Class DictionaryServiceImpl
java.lang.Object
org.opencastproject.dictionary.hunspell.DictionaryServiceImpl
- All Implemented Interfaces:
org.opencastproject.dictionary.api.DictionaryService
public class DictionaryServiceImpl
extends Object
implements org.opencastproject.dictionary.api.DictionaryService
This dictionary service implementation passes the input text
to the hunspell spell checker and returns its results.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.opencastproject.metadata.mpeg7.TextualcleanUpText(String text) Filter the text according to the rules defined by the dictionary implementation used.runHunspell(String text) Run hunspell with text as input.voidvoidsetCommand(String c)
-
Field Details
-
HUNSPELL_BINARY_CONFIG_KEY
- See Also:
-
HUNSPELL_COMMAND_CONFIG_KEY
- See Also:
-
-
Constructor Details
-
DictionaryServiceImpl
public DictionaryServiceImpl()
-
-
Method Details
-
setBinary
-
getBinary
-
setCommand
-
getCommand
-
runHunspell
Run hunspell with text as input.- Throws:
Throwable
-
cleanUpText
Filter the text according to the rules defined by the dictionary implementation used. This implementation will just let the whole text pass through.- Specified by:
cleanUpTextin interfaceorg.opencastproject.dictionary.api.DictionaryService- Returns:
- filtered text
-