Package org.apache.uima.alchemy.ts.microformats

Examples of org.apache.uima.alchemy.ts.microformats.MicroformatFS


public class MicroformatsProcessor implements AlchemyOutputProcessor {

  public void process(JCas cas, Results results) throws Exception {
    for (Microformat microformat : ((MicroformatsResults) results).getMicroformats()) {
      MicroformatFS microformatFS = new MicroformatFS(cas);
      Type type = microformatFS.getType();
      microformatFS.setFeatureValueFromString(type.getFeatureByBaseName("fieldName"), microformat
              .getFieldName());
      microformatFS.setFeatureValueFromString(type.getFeatureByBaseName("fieldData"), microformat
              .getFieldData());
      microformatFS.addToIndexes();
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.uima.alchemy.ts.microformats.MicroformatFS

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.