public List < LightAnnot > processRawStringAsAnnotList ( String s ) { Annotation [ ] annots = decoderPipeline . processRawStringAsAnnotList ( s ) ; List < LightAnnot > alist = new ArrayList < LightAnnot > ( ) ; int i = 0 ; for ( i = 0 ; i < annots . length ; i ++ ) { Annotation ann = annots [ i ] ; alist . add ( new LightAnnot ( ann . st ( ) , ann . en ( ) , ann . typ ( ) . toString ( ) ) ) ; } return ( alist ) ; }
Process a text string as input and return a List of LightAnnot objects that serve as stand - off annotations over the input text .