Package com.gengoai.hermes.ml
Class IOBValidator
- java.lang.Object
-
- com.gengoai.hermes.ml.IOBValidator
-
- All Implemented Interfaces:
SequenceValidator
,Serializable
public class IOBValidator extends Object implements SequenceValidator
Sequence validator ensuring correct IOB tag output
- Author:
- David B. Bracewell
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static IOBValidator
INSTANCE
-
Fields inherited from interface com.gengoai.apollo.ml.model.sequence.SequenceValidator
ALWAYS_TRUE
-
-
Constructor Summary
Constructors Constructor Description IOBValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isValid(String label, String previousLabel, Observation instance)
-
-
-
Field Detail
-
INSTANCE
public static final IOBValidator INSTANCE
-
-
Method Detail
-
isValid
public boolean isValid(String label, String previousLabel, Observation instance)
- Specified by:
isValid
in interfaceSequenceValidator
-
-