Package org.apache.ctakes.necontexts

Examples of org.apache.ctakes.necontexts.ContextHit


              && (si.getStartOffset() < finalSi.getStartOffset())) {
            // pick one w/ closest proximity to focus
            finalSi = si;
          }
        }
        ContextHit ctxHit = new ContextHit(finalSi.getStartOffset(),
            finalSi.getEndOffset());

        ctxHit.addMetaData(CTX_HIT_KEY_ILLNESS_TYPE, new Integer(
            finalSi.getStatus()));

        return ctxHit;
      } else {
        return null;
View Full Code Here


            Set<NegationIndicator> s = iv_negIndicatorFSM.execute(fsmTokenList);

            if (s.size() > 0)
            {
                NegationIndicator neg = (NegationIndicator) s.iterator().next();
                return new ContextHit(neg.getStartOffset(), neg.getEndOffset());
            }
            else
            {
                return null;
            }
View Full Code Here

    try {
      Set<NegationIndicator> s = _negIndicatorFSM.execute(fsmTokenList);

      if (s.size() > 0) {
        NegationIndicator neg = s.iterator().next();
        return new ContextHit(neg.getStartOffset(), neg.getEndOffset());
      } else {
        return null;
      }
    } catch (Exception e) {
      throw new AnalysisEngineProcessException(e);
View Full Code Here

              && (si.getStartOffset() < finalSi.getStartOffset())) {
            // pick one w/ closest proximity to focus
            finalSi = si;
          }
        }
        ContextHit ctxHit = new ContextHit(finalSi.getStartOffset(), finalSi.getEndOffset());

        ctxHit.addMetaData(CTX_HIT_KEY_STATUS_TYPE, new Integer(finalSi.getStatus()));

        return ctxHit;
      } else {
        return null;
      }
View Full Code Here

    try {
      Set<NegationIndicator> s = _negIndicatorFSM.execute(fsmTokenList);

      if (s.size() > 0) {
        NegationIndicator neg = s.iterator().next();
        return new ContextHit(neg.getStartOffset(), neg.getEndOffset());
      } else {
        return null;
      }
    } catch (Exception e) {
      throw new AnalysisEngineProcessException(e);
View Full Code Here

            Set s = iv_negIndicatorFSM.execute(fsmTokenList);

            if (s.size() > 0)
            {
                NegationIndicator neg = (NegationIndicator) s.iterator().next();
                return new ContextHit(neg.getStartOffset(), neg.getEndOffset());
            }
            else
            {
                return null;
            }
View Full Code Here

TOP

Related Classes of org.apache.ctakes.necontexts.ContextHit

Copyright © 2018 www.massapicom. 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.