Examples of LookupAlgorithm


Examples of org.apache.ctakes.dictionary.lookup.algorithms.LookupAlgorithm

    Collections.sort(lookupTokenList, iv_lookupTokenComparator);

    // perform lookup
    Collection lookupHitCol = null;

    LookupAlgorithm la = (LookupAlgorithm) ls.getLookupAlgorithm();
    lookupHitCol = la.lookup(lookupTokenList, ctxMap);

    Collection uniqueHitCol = filterHitDups(lookupHitCol);

    // consume hits
    ls.getLookupConsumer().consumeHits(jcas, uniqueHitCol.iterator());
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.algorithms.LookupAlgorithm

                  lcArgs = new Object[]{annotCtx, lcProps};
               }
            }

            final LookupConsumer lc = (LookupConsumer) lcConstr.newInstance( lcArgs );
            final LookupAlgorithm la = li.getLookupAlgorithm( dictEngine );

            final LookupSpec ls = new LookupSpec( la, li, lc );

            lsSet.add( ls );
         }
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.algorithms.LookupAlgorithm

    Collections.sort(lookupTokenList, LookupTokenComparator.getInstance() );

    // perform lookup
    Collection<LookupHit> lookupHitCol = null;

    LookupAlgorithm la = ls.getLookupAlgorithm();
    lookupHitCol = la.lookup(lookupTokenList, ctxMap);

    Collection<LookupHit> uniqueHitCol = filterHitDups(lookupHitCol);

    // consume hits
    ls.getLookupConsumer().consumeHits(jcas, uniqueHitCol.iterator());
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.algorithms.LookupAlgorithm

      try {
         windowItr = lookupInitializer.getLookupWindowIterator( jcas );
      } catch ( AnnotatorInitializationException aiE ) {
         return new LookupDataStore( lookupSpec, new ArrayList<LookupHit>(0) );
      }
      final LookupAlgorithm algorithm = lookupSpec.getLookupAlgorithm();
      final List<LookupHit> allHits = new ArrayList<LookupHit>();
      while (windowItr.hasNext()) {
         final Annotation window = windowItr.next();
         try {
            // ** Poor Form ** //
 
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.algorithms.LookupAlgorithm

          lcArgs = new Object[]{ annotCtx, lcProps };
        }       
      }

      LookupConsumer lc = (LookupConsumer) lcConstr.newInstance(lcArgs);
      LookupAlgorithm la = li.getLookupAlgorithm(dictEngine);

      LookupSpec ls = new LookupSpec(la, li, lc);

      lsSet.add(ls);
    }
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.algorithms.LookupAlgorithm

      try {
         windowItr = lookupInitializer.getLookupWindowIterator( jcas );
      } catch ( AnnotatorInitializationException aiE ) {
         return new LookupDataStore( lookupSpec, new ArrayList<LookupHit>(0) );
      }
      final LookupAlgorithm algorithm = lookupSpec.getLookupAlgorithm();
      final List<LookupHit> allHits = new ArrayList<LookupHit>();
      while (windowItr.hasNext()) {
         final Annotation window = (Annotation) windowItr.next();
         try {
            // ** Poor Form ** //
 
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.algorithms.LookupAlgorithm

          lcArgs = new Object[]{ annotCtx, lcProps };
        }       
      }

      LookupConsumer lc = (LookupConsumer) lcConstr.newInstance(lcArgs);
      LookupAlgorithm la = li.getLookupAlgorithm(dictEngine);

      LookupSpec ls = new LookupSpec(la, li, lc);

      lsSet.add(ls);
    }
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.algorithms.LookupAlgorithm

                  lcArgs = new Object[]{annotCtx, lcProps};
               }
            }

            final LookupConsumer lc = (LookupConsumer) lcConstr.newInstance( lcArgs );
            final LookupAlgorithm la = li.getLookupAlgorithm( dictEngine );

            final LookupSpec ls = new LookupSpec( la, li, lc );

            lsSet.add( ls );
         }
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.algorithms.LookupAlgorithm

    Collections.sort(lookupTokenList, LookupTokenComparator.getInstance() );

    // perform lookup
    Collection lookupHitCol = null;

    LookupAlgorithm la = (LookupAlgorithm) ls.getLookupAlgorithm();
    lookupHitCol = la.lookup(lookupTokenList, ctxMap);

    Collection uniqueHitCol = filterHitDups(lookupHitCol);

    // consume hits
    ls.getLookupConsumer().consumeHits(jcas, uniqueHitCol.iterator());
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.