Examples of removeFromIndexes()


Examples of org.apache.ctakes.drugner.type.SubSectionAnnotation.removeFromIndexes()

                  if (!isolate)
                  {
                    DrugChangeStatusAnnotation dsa = (DrugChangeStatusAnnotation) statusChangeItr.next();
                    holdStatusChanges.add(dsa);
                    pullOut = true;
                    sub.removeFromIndexes();
                  }
                } else if (findEndLF.hasNext())
                {
                  // subsection is on a prior separate line than the rest
                  // of the content
View Full Code Here

Examples of org.apache.ctakes.drugner.type.SubSectionAnnotation.removeFromIndexes()

                } else if (sub.getBegin() > tokenAnt.getEnd())
                {
                  end = sub.getBegin();
                  holdRightEnd = sub.getBegin();
                  sub.removeFromIndexes();
                } else
                {
                  holdLeftStart = sub.getEnd();
                  holdRightEnd = tokenAnt.getBegin();
                }
View Full Code Here

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

            for (int i =1; i< relations.size(); i++){
              BinaryTextRelation relation = (BinaryTextRelation) relations.toArray()[i];
              annotationsToRelation.remove(span, relation);
              relation.getArg1().removeFromIndexes();
              relation.getArg2().removeFromIndexes();
              relation.removeFromIndexes();
            }
          }
        }
      }
View Full Code Here

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

            for (int i =1; i< relations.size(); i++){
              BinaryTextRelation relation = (BinaryTextRelation) relations.toArray()[i];
              annotationsToRelation.remove(span, relation);
              relation.getArg1().removeFromIndexes();
              relation.getArg2().removeFromIndexes();
              relation.removeFromIndexes();
            }
          }
        }
      }
View Full Code Here

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

          // these are the kind we keep.
          continue;
        }
        //            if(arg1.getArgument() instanceof EventMention && arg2.getArgument() instanceof EventMention){
        arg1.removeFromIndexes();
        arg2.removeFromIndexes();
        relation.removeFromIndexes();
      }
      //        }

    }
View Full Code Here

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

          if(arg1.getArgument() instanceof EventMention && arg2.getArgument() instanceof EventMention){
            // these are the kind we keep.
            continue;
          }
          arg1.removeFromIndexes();
          arg2.removeFromIndexes();
          relation.removeFromIndexes();
      }
    }  
  }
View Full Code Here

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

        // we have duration distributions for both arguments, so keep it
        continue;
      }

      arg1.removeFromIndexes();                                                                                           
      arg2.removeFromIndexes();                                                                                           
      relation.removeFromIndexes();
    }

    // remove events (that didn't participate in relations) that have no data
    for(EventMention mention : Lists.newArrayList(JCasUtil.select(goldView, EventMention.class))) {
View Full Code Here

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

          // these are the kind we keep.
          continue;
        }
        //            if(arg1.getArgument() instanceof EventMention && arg2.getArgument() instanceof EventMention){
        arg1.removeFromIndexes();
        arg2.removeFromIndexes();
        relation.removeFromIndexes();
      }
      //        }

    }
View Full Code Here

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

        // there is duration information and we are able to get time units, so keep this
        continue;
      }
     
      arg1.removeFromIndexes();                                                                                           
      arg2.removeFromIndexes();                                                                                           
      relation.removeFromIndexes();
    }
   
    // remove events (that didn't participate in relations) that have no data
    for(EventMention mention : Lists.newArrayList(JCasUtil.select(goldView, EventMention.class))) {
View Full Code Here

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

        continue;
      }
     
      System.out.println("removing: " + event1Text + "-" + event2Text);
      arg1.removeFromIndexes();                                                                                           
      arg2.removeFromIndexes();                                                                                           
      relation.removeFromIndexes();
    }
   
    for(EventMention mention : Lists.newArrayList(JCasUtil.select(goldView, EventMention.class))) {
      List<EventMention> coveringSystemEventMentions = JCasUtil.selectCovered(
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.