Examples of MicroformatFS


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
Copyright © 2018 www.massapi.com. 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.