Package org.apache.uima.alchemy.digester.domain

Examples of org.apache.uima.alchemy.digester.domain.ConceptResults


import org.apache.uima.jcas.JCas;

public class ConceptTaggingProcessor implements AlchemyOutputProcessor {

  public void process(JCas cas, Results results) throws Exception {
    ConceptResults conceptResults = (ConceptResults) results;
    if (conceptResults.getConcepts() != null) {
      List<Concept> concepts = conceptResults.getConcepts().getConcepts();
      for (Concept concept : concepts) {
        ConceptFS conceptFS = new ConceptFS(cas);
        Type type = conceptFS.getType();
        conceptFS.setFeatureValueFromString(type.getFeatureByBaseName("text"), concept.getText());
        conceptFS.setFeatureValueFromString(type.getFeatureByBaseName("relevance"), concept
View Full Code Here

TOP

Related Classes of org.apache.uima.alchemy.digester.domain.ConceptResults

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.