Examples of LookupAnnotation


Examples of org.apache.ctakes.dictionary.lookup.vo.LookupAnnotation

                {
                    int wEndOffset = -1;
                    if (useWindowAnnots)
                    {
                        // get the largest overlapping window annotation
                        LookupAnnotation wAnnot = getLargestWindowAnnotation(
                                ltIdx,
                                lt,
                                ltStartOffsetMap,
                                ltEndOffsetMap,
                                ltListIndexMap,
                                wStartOffsetMap,
                                wEndOffsetMap);
                        if (wAnnot != null)
                        {
                            wEndOffset = wAnnot.getEndOffset();
                        }
                    }
                    if (wEndOffset == -1)
                    {
                        iv_logger.debug("Window size set to max perm level.");
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.vo.LookupAnnotation

        // union to get window annotations that are overlapping with LookupToken
        startCandidateSet.retainAll(endCandidateSet);

        // find largest overlapping window annotation
        LookupAnnotation largestWindowAnnot = null;
        Iterator laItr = startCandidateSet.iterator();
        while (laItr.hasNext())
        {
            LookupAnnotation tempLookupAnnot = (LookupAnnotation) laItr.next();
            if ((largestWindowAnnot == null)
                    || (tempLookupAnnot.getLength() > largestWindowAnnot.getLength()))
            {
                // now see if we can handle the size of this window (permutation
                // wise)
                int ltCount = getNumberOfListTokens(
                        ltStartOffsetMap,
                        ltEndOffsetMap,
                        ltListIndexMap,
                        tempLookupAnnot.getStartOffset(),
                        tempLookupAnnot.getEndOffset());

                if ((ltCount <= iv_maxPermutationLevel) && (ltCount > 0))
                {
                    largestWindowAnnot = tempLookupAnnot;
                }
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.vo.LookupAnnotation

        Map m = new HashMap();

        Iterator laItr = lookupAnnotList.iterator();
        while (laItr.hasNext())
        {
            LookupAnnotation la = (LookupAnnotation) laItr.next();
            Integer key = new Integer(la.getStartOffset());
            if (hasMultiples)
            {
                List list = (List) m.get(key);
                if (list == null)
                {
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.vo.LookupAnnotation

        Map m = new HashMap();

        Iterator laItr = lookupAnnotList.iterator();
        while (laItr.hasNext())
        {
            LookupAnnotation la = (LookupAnnotation) laItr.next();
            Integer key = new Integer(la.getEndOffset());
            if (hasMultiples)
            {
                List list = (List) m.get(key);
                if (list == null)
                {
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.vo.LookupAnnotation

            continue;
         }
         int wEndOffset = -1;
         if ( useWindowAnnots ) {
            // get the largest overlapping window annotation
            final LookupAnnotation windowAnnotation = getLargestWindowAnnotation( currentIndex, lookupToken,
                                                                                 ltStartOffsetMap, ltEndOffsetMap,
                                                                                 ltListIndexMap,
                                                                                 wStartOffsetMap, wEndOffsetMap );
            if ( windowAnnotation != null ) {
               wEndOffset = windowAnnotation.getEndOffset();
            }
         }
         if ( wEndOffset == -1 ) {
            iv_logger.debug( "Window size set to max perm level." );
            wEndOffset = getFixedWindowEndOffset( currentIndex, lookupToken, lookupTokenList );
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.vo.LookupAnnotation

      }
      // union to get window annotations that are overlapping with LookupToken
      startCandidateSet.retainAll( endCandidateSet );

      // find largest overlapping window annotation
      LookupAnnotation largestWindowAnnot = null;
      for ( LookupAnnotation tempLookupAnnot : startCandidateSet ) {
         if ( largestWindowAnnot == null || tempLookupAnnot.getLength() > largestWindowAnnot.getLength() ) {
            // now see if we can handle the size of this window (permutation wise)
            final int ltCount = getNumberOfListTokens( ltStartOffsetMap, ltEndOffsetMap, ltListIndexMap,
                                                       tempLookupAnnot.getStartOffset(),
                                                       tempLookupAnnot.getEndOffset() );
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.vo.LookupAnnotation

            continue;
         }
         int wEndOffset = -1;
         if ( useWindowAnnots ) {
            // get the largest overlapping window annotation
            final LookupAnnotation windowAnnotation = getLargestWindowAnnotation( currentIndex, lookupToken,
                                                                                 ltStartOffsetMap, ltEndOffsetMap,
                                                                                 ltListIndexMap,
                                                                                 wStartOffsetMap, wEndOffsetMap );
            if ( windowAnnotation != null ) {
               wEndOffset = windowAnnotation.getEndOffset();
            }
         }
         if ( wEndOffset == -1 ) {
            iv_logger.debug( "Window size set to max perm level." );
            wEndOffset = getFixedWindowEndOffset( currentIndex, lookupToken, lookupTokenList );
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.vo.LookupAnnotation

      }
      // union to get window annotations that are overlapping with LookupToken
      startCandidateSet.retainAll( endCandidateSet );

      // find largest overlapping window annotation
      LookupAnnotation largestWindowAnnot = null;
      for ( LookupAnnotation tempLookupAnnot : startCandidateSet ) {
         if ( largestWindowAnnot == null || tempLookupAnnot.getLength() > largestWindowAnnot.getLength() ) {
            // now see if we can handle the size of this window (permutation wise)
            final int ltCount = getNumberOfListTokens( ltStartOffsetMap, ltEndOffsetMap, ltListIndexMap,
                                                       tempLookupAnnot.getStartOffset(),
                                                       tempLookupAnnot.getEndOffset() );
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.