Class Annotate
- java.lang.Object
-
- com.gengoai.hermes.workflow.actions.Annotate
-
- All Implemented Interfaces:
Action
,Serializable
public class Annotate extends Object implements Action
The type Annotate processor.- Author:
- David B. Bracewell
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ANNOTATABLE_TYPE_CONFIG
-
Constructor Summary
Constructors Constructor Description Annotate()
Annotate(@NonNull AnnotatableType... types)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
getTypes()
Get types string [ ].DocumentCollection
process(@NonNull DocumentCollection corpus, @NonNull Context context)
Process corpus.void
setTypes(@NonNull String[] types)
Sets types.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.gengoai.hermes.workflow.Action
getOverrideStatus, loadPreviousState
-
-
-
-
Field Detail
-
ANNOTATABLE_TYPE_CONFIG
public static final String ANNOTATABLE_TYPE_CONFIG
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Annotate
public Annotate()
-
Annotate
public Annotate(@NonNull @NonNull AnnotatableType... types)
-
-
Method Detail
-
getTypes
public String[] getTypes()
Get types string [ ].- Returns:
- the string [ ]
-
process
public DocumentCollection process(@NonNull @NonNull DocumentCollection corpus, @NonNull @NonNull Context context) throws Exception
Description copied from interface:Action
Process corpus.
-
setTypes
public void setTypes(@NonNull @NonNull String[] types)
Sets types.- Parameters:
types
- the types
-
-