Package org.apache.ctakes.core.fsm.condition

Examples of org.apache.ctakes.core.fsm.condition.PunctuationValueCondition


    State dayNumState = new NamedState("DAY_NUM");
    State dayYearSeparatorState = new NamedState("DAY_YEAR_SEP");

    Condition monthNumCondition = new IntegerRangeCondition(MIN_MONTH,
        MAX_MONTH);
    Condition mdFslashCondition = new PunctuationValueCondition('/');
    Condition mdDashCondition = new PunctuationValueCondition('-');
    Condition dyFslashCondition = new PunctuationValueCondition('/');
    Condition dyDashCondition = new PunctuationValueCondition('-');
    Condition dayNumCondition = new IntegerRangeCondition(MIN_DAY, MAX_DAY);
    Condition yearNumCondition = new IntegerRangeCondition(MIN_YEAR,
        MAX_YEAR);

    // condition that is not a fslash or dash
View Full Code Here


    Condition monthFullTextCondition = new WordSetCondition(
        iv_monthFullNameSet, false);
    Condition monthShortTextCondition = new WordSetCondition(
        iv_monthShortNameSet, false);
    Condition dayNumCondition = new IntegerRangeCondition(MIN_DAY, MAX_DAY);
    Condition periodCondition = new PunctuationValueCondition('.');
    Condition yearNumCondition = new IntegerRangeCondition(MIN_YEAR,
        MAX_YEAR);
    Condition commaCondition = new PunctuationValueCondition(',');

    // condition for not being a comma or year number
    Condition notCommaNotYearNumCondition = new CombineCondition(
        new NegateCondition(commaCondition), new NegateCondition(
            yearNumCondition));
View Full Code Here

        false);

    startState.addTransition(subFirstBegin, medState);
      startState.addTransition(new AnyCondition(), startState);

      medState.addTransition(new PunctuationValueCondition(':'), endState);
    medState.addTransition(subFirstNext, tailState);
    medState.addTransition(new SymbolValueCondition('&'), tailState);
    medState.addTransition(new PunctuationValueCondition('&'), tailState);
    medState.addTransition(new AnyCondition(), startState);
   
    tailState.addTransition(new PunctuationValueCondition(':'), endState);
    tailState.addTransition(subFirstTail, caseState);
    tailState.addTransition(new AnyCondition(), startState);
   
    caseState.addTransition(new WordValueCondition("and", false), nonCaseState);
    caseState.addTransition(new WordValueCondition("the", false), nonCaseState);
    caseState.addTransition(new PunctuationValueCondition(':'), endState);
    caseState.addTransition(new PunctuationValueCondition('-'), endState);
    caseState.addTransition(new AnyCondition(), startState);
   
    nonCaseState.addTransition(new PunctuationValueCondition('/'), fslashState);
    nonCaseState.addTransition(altSubFirstBegin, altTailState);
    nonCaseState.addTransition(new AnyCondition(), startState);
   
    altTailState.addTransition(altSubFirstNext, finishAltState);
    altTailState.addTransition(new AnyCondition(), startState);
View Full Code Here

      startState.addTransition(new AnyCondition(), startState);
     
      nonCaseState.addTransition(subFirstEnd, endState);
      nonCaseState.addTransition(new AnyCondition(), startState);
   
    casenState.addTransition(new PunctuationValueCondition(':'), endState);
    casenState.addTransition(new AnyCondition(), startState);
   
    endState.addTransition(new AnyCondition(), startState);
    return m;
  }
View Full Code Here

 
    startState.addTransition(subFirstBegin, caseState);
      startState.addTransition(new AnyCondition(), startState);
 
   
    caseState.addTransition(new PunctuationValueCondition(':'), endState);
    caseState.addTransition(new WordValueCondition("revision", false), nonCaseState);
    caseState.addTransition(new AnyCondition(), startState);
   
    nonCaseState.addTransition(new WordValueCondition("changes", false), endState);
    nonCaseState.addTransition(new AnyCondition(), startState);
View Full Code Here

        pad2of3State.addTransition(new AnyCondition(), startState);
       
        pad3of3State.addTransition(pad3of3DxC, endState);
        pad3of3State.addTransition(new AnyCondition(), startState);
       
        padHyphenBeginState.addTransition(new PunctuationValueCondition('-'), padHyphenEndState);
        padHyphenBeginState.addTransition(new AnyCondition(), startState);
       
        padHyphenEndState.addTransition(padDxHyphenEndC, endState);
        padHyphenEndState.addTransition(new AnyCondition(), startState);
       
View Full Code Here

        State fractionTextState = new NamedState("NUMERATOR_TEXT");
        State dashState = new NamedState("DASH");
        startState.addTransition(new IntegerValueCondition(0), zeroNumState);
        startState.addTransition(new AnyCondition(), startState);

        zeroNumState.addTransition(new PunctuationValueCondition('.'), fractionTextState);
    zeroNumState.addTransition(new AnyCondition(), startState);

    fractionTextState.addTransition(new NumberCondition(), dashState);
    fractionTextState.addTransition(new AnyCondition(), startState);
   
    dashState.addTransition(new PunctuationValueCondition('-'), endState);
    dashState.addTransition(new AnyCondition(), startState);
   
        endState.addTransition(new AnyCondition(), startState);

        return m;
View Full Code Here

    State thenStatusState = new NamedState("DUALSTARTTHENSTART");
   
    Condition rangeCombineCondition = new DisjoinCondition(
        new RangeCondition(), new RangeStrengthCondition());
 
    Condition sectionBracket = new PunctuationValueCondition('[');
    Condition soloCondition = new WordSetCondition(iv_singleStartWordSet,
        false);
    Condition soloEndCondition = new WordSetCondition(
        iv_singleStartWordSet, false);
    Condition firstDualCondition = new WordSetCondition(
View Full Code Here

    State sectionStatusState = new NamedState("DUALSTARTSTOP");

    Condition rangeCombineCondition = new DisjoinCondition(
        new RangeCondition(), new RangeStrengthCondition());

    Condition sectionBracket = new PunctuationValueCondition('[');
    Condition soloCondition = new WordSetCondition(iv_singleStopWordSet,
        false);
    Condition soloEndCondition = new WordSetCondition(iv_singleStopWordSet,
        false);
    Condition firstDualCondition = new WordSetCondition(
View Full Code Here

    Machine m = new Machine(startState);

    State leftNumTextState = new NamedState("LEFT_DOSAGE");
    State rightNumTextState = new NamedState("RIGHT_DOSAGE");
    State fslashState = new NamedState("FSLASH");
    Condition dashCondition = new PunctuationValueCondition('/');

    Condition leftNumTextCondition = new StrengthCondition();
    Condition rightIntegerCondition = new IntegerCondition();
    Condition rightNumTextCondition = new WordSetCondition(
        iv_textSuffixSet, false);
View Full Code Here

TOP

Related Classes of org.apache.ctakes.core.fsm.condition.PunctuationValueCondition

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.