public class BioCodec extends Object implements SequenceCodec<String>
| Modifier and Type | Field and Description | 
|---|---|
| static String | CONTINUE | 
| static String | OTHER | 
| static String | START | 
| Constructor and Description | 
|---|
| BioCodec() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | areOutcomesCompatible(String[] outcomes)Checks if the outcomes of the model are compatible with the codec. | 
| NameFinderSequenceValidator | createSequenceValidator()Creates a sequence validator which can validate a sequence of outcomes. | 
| Span[] | decode(List<String> c)Decodes a sequence T objects into Span objects. | 
| String[] | encode(Span[] names,
      int length)Encodes Span objects into a sequence of T objects. | 
public static final String START
public static final String CONTINUE
public static final String OTHER
public Span[] decode(List<String> c)
SequenceCodecdecode in interface SequenceCodec<String>public String[] encode(Span[] names, int length)
SequenceCodecencode in interface SequenceCodec<String>public NameFinderSequenceValidator createSequenceValidator()
SequenceCodeccreateSequenceValidator in interface SequenceCodec<String>public boolean areOutcomesCompatible(String[] outcomes)
SequenceCodecareOutcomesCompatible in interface SequenceCodec<String>outcomes - all possible model outcomesCopyright © 2018 The Apache Software Foundation. All rights reserved.