Class SpellChecker
- java.lang.Object
-
- com.gengoai.hermes.workflow.actions.SpellChecker
-
- All Implemented Interfaces:
Action
,Serializable
public class SpellChecker extends Object implements Action, Serializable
The type Spellchecker module.- Author:
- David B. Bracewell
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SpellChecker(@NonNull WordEmbedding spellingEmbedding)
Instantiates a new Spellchecker module.SpellChecker(@NonNull WordEmbedding spellingEmbedding, @NonNull Resource dictionary, int maxCost)
Instantiates a new Spellchecker module.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentCollection
process(@NonNull DocumentCollection corpus, @NonNull Context context)
Process corpus.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.gengoai.hermes.workflow.Action
getOverrideStatus, loadPreviousState
-
-
-
-
Constructor Detail
-
SpellChecker
public SpellChecker(@NonNull @NonNull WordEmbedding spellingEmbedding)
Instantiates a new Spellchecker module.- Parameters:
spellingEmbedding
- the spelling embedding
-
SpellChecker
public SpellChecker(@NonNull @NonNull WordEmbedding spellingEmbedding, @NonNull @NonNull Resource dictionary, int maxCost)
Instantiates a new Spellchecker module.- Parameters:
spellingEmbedding
- the spelling embeddingdictionary
- the dictionarymaxCost
- the max cost
-
-
Method Detail
-
process
public DocumentCollection process(@NonNull @NonNull DocumentCollection corpus, @NonNull @NonNull Context context) throws Exception
Description copied from interface:Action
Process corpus.
-
-