Examples of annotate()


Examples of org.apache.pig.newplan.logical.relational.LOGenerate.annotate()

        public void visit(LOForEach foreach) throws FrontendException {
            Set<Long> output = setOutputUids(foreach);
           
            LogicalPlan innerPlan = foreach.getInnerPlan();
            LOGenerate gen = (LOGenerate)innerPlan.getSinks().get(0);
            gen.annotate(OUTPUTUIDS, output);
           
            visit(gen);
           
            Set<Long> input = (Set<Long>)gen.getAnnotation(INPUTUIDS);
           
View Full Code Here

Examples of org.dbpedia.spotlight.annotate.DefaultParagraphAnnotator.annotate()

      if(new File(annotationsFolder, i + ".tsv").exists()) {
        continue;
      }

      try{
        List<DBpediaResourceOccurrence> annotatedOccurrences = annotator.annotate(text.text());

        FileWriter fileWriter = new FileWriter(new File(annotationsFolder, i + ".tsv"));
        for(DBpediaResourceOccurrence annotatedOccurrence : annotatedOccurrences){
          fileWriter.write(annotatedOccurrence.toTsvString() + "\n");
        }
View Full Code Here

Examples of org.exist.versioning.Patch.annotate()

       
            MemTreeBuilder builder = context.getDocumentBuilder();
            DocumentBuilderReceiver receiver = new DocumentBuilderReceiver(builder);
            Patch patch = new Patch(context.getBroker(), diff);
            if (isCalledAs("annotate"))
                patch.annotate(reader, receiver);
            else
                patch.patch(reader, receiver);
            NodeValue result = (NodeValue) builder.getDocument().getDocumentElement();
            return result == null ? Sequence.EMPTY_SEQUENCE : result;
        } catch (IOException e) {
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.