Package org.apache.clerezza.uima.utils.ts

Examples of org.apache.clerezza.uima.utils.ts.WikipediaEntity


public class DummyWikipediaEntityAnnotator extends JCasAnnotator_ImplBase {

  @Override
  public void process(JCas jcas) throws AnalysisEngineProcessException {
    WikipediaEntity wikipediaEntity = new WikipediaEntity(jcas);
    wikipediaEntity.setUri("http://en.wikipedia.org/wiki/STS-135");
    wikipediaEntity.setLabel("STS-135");
    FSList stsAnnotationsList = findSTSAnnotations(jcas);
    wikipediaEntity.setReferences(stsAnnotationsList);
    wikipediaEntity.addToIndexes();

  }
View Full Code Here

TOP

Related Classes of org.apache.clerezza.uima.utils.ts.WikipediaEntity

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.