Examples of addToIndexes()


Examples of org.apache.ctakes.typesystem.type.relation.BinaryTextRelation.addToIndexes()

            relArg2.addToIndexes();
            BinaryTextRelation relation = new BinaryTextRelation(relationView);
            relation.setArg1(relArg1);
            relation.setArg2(relArg2);
            relation.setCategory(predictedCategory);
            relation.addToIndexes();
          }
        }
      } // end pair in pairs
    } // end for(Sentence)
  }
View Full Code Here

Examples of org.apache.ctakes.typesystem.type.relation.CollectionTextRelation.addToIndexes()

          collectionRas.put(bestAnte.m, anteNode);
          CollectionTextRelation chain = new CollectionTextRelation(jcas);
          chain.setId(chainId++);
          chain.setCategory("CoreferenceChain");
          chain.setMembers(anteNode);
          chain.addToIndexes();
        }
        anteNode.setTail(node);
       
       
//        ppt.union(m2q.get(anaphor), m2q.get(bestAnte.m));
View Full Code Here

Examples of org.apache.ctakes.typesystem.type.relation.CoreferenceRelation.addToIndexes()

        cr.setArg1(ra1);
        cr.setArg2(ra2);
        cr.setConfidence(bestAnte.prob);
        ra1.addToIndexes();
        ra2.addToIndexes();
        cr.addToIndexes();
        ppt.union(m2q.get(anaphor), m2q.get(bestAnte.m));
        if(anaphor instanceof PronounMarkable){
          // if the anaphor is a pronoun then it won't be in the cas as an identifiedannotation so we need to add it.
          IdentifiedAnnotation ia = new IdentifiedAnnotation(jcas);
         
View Full Code Here

Examples of org.apache.ctakes.typesystem.type.relation.DegreeOfTextRelation.addToIndexes()

    relArg2.addToIndexes();
    DegreeOfTextRelation relation = new DegreeOfTextRelation(jCas);
    relation.setArg1(relArg1);
    relation.setArg2(relArg2);
    relation.setCategory(predictedCategory);
    relation.addToIndexes();
  }

  @Override
  protected Class<? extends Annotation> getCoveringClass() {
    return Sentence.class;
View Full Code Here

Examples of org.apache.ctakes.typesystem.type.relation.LocationOfTextRelation.addToIndexes()

    relArg2.addToIndexes();
    LocationOfTextRelation relation = new LocationOfTextRelation(jCas);
    relation.setArg1(relArg1);
    relation.setArg2(relArg2);
    relation.setCategory(predictedCategory);
    relation.addToIndexes();
  }

  @Override
  protected Class<? extends Annotation> getCoveringClass() {
    return Sentence.class;
View Full Code Here

Examples of org.apache.ctakes.typesystem.type.relation.RelationArgument.addToIndexes()

            // add the relation to the CAS
            RelationArgument relArg1 = new RelationArgument(relationView);
            relArg1.setArgument(arg1);
            relArg1.setRole("Argument");
            relArg1.addToIndexes();
            RelationArgument relArg2 = new RelationArgument(relationView);
            relArg2.setArgument(arg2);
            relArg2.setRole("Related_to");
            relArg2.addToIndexes();
            BinaryTextRelation relation = new BinaryTextRelation(relationView);
View Full Code Here

Examples of org.apache.ctakes.typesystem.type.relation.TemporalTextRelation.addToIndexes()

                relArg2.addToIndexes();
                TemporalTextRelation relation = new TemporalTextRelation(jCas);
                relation.setArg1(relArg1);
                relation.setArg2(relArg2);
                relation.setCategory(outcome);
                relation.addToIndexes();
            }else{
              System.out.println("cannot classify "+ eventMention.getCoveredText()+" and " + admissionTime.getCoveredText());
            }
          }
        }
View Full Code Here

Examples of org.apache.ctakes.typesystem.type.structured.DocumentID.addToIndexes()

    @Override
    public void process(JCas jCas) throws AnalysisEngineProcessException {
      String documentID = new File(ViewURIUtil.getURI(jCas)).getName();
      DocumentID documentIDAnnotation = new DocumentID(jCas);
      documentIDAnnotation.setDocumentID(documentID);
      documentIDAnnotation.addToIndexes();
    }

  }

}
View Full Code Here

Examples of org.apache.ctakes.typesystem.type.syntax.BaseToken.addToIndexes()

        }
       
        newGoldToken.setPartOfSpeech(oldSystemToken.getPartOfSpeech());
        newGoldToken.setTokenNumber(oldSystemToken.getTokenNumber());
       
        newGoldToken.addToIndexes();
      }

    } // end of method ReferenceSupportingAnnotationsSystemToGoldCopier.process()
  } // end of class ReferenceSupportingAnnotationsSystemToGoldCopier
View Full Code Here

Examples of org.apache.ctakes.typesystem.type.syntax.Chunk.addToIndexes()

  }

  public Annotation createChunk(JCas jCas, int start, int end, String chunkType) {
    Chunk chunk = new Chunk(jCas, start, end);
    chunk.setChunkType(chunkType);
    chunk.addToIndexes();
    return chunk;
  }

}
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.