Package org.mitre.jcarafe.util

Examples of org.mitre.jcarafe.util.Annotation


  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);
  }
View Full Code Here

TOP

Related Classes of org.mitre.jcarafe.util.Annotation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.