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

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


    State secondDotQtoPState = new NamedState("SECONDDOTQ2P");
    State secondDotBtoIState = new NamedState("SECONDDOTB2I");
    State secondDotPtoRState = new NamedState("SECONDDOTP2R");
    State secondDotTtoIState = new NamedState("SECONDDOTT2I");

    Condition firstDotConditionQ = new PunctuationValueCondition('.');
    Condition firstDotConditionB = new PunctuationValueCondition('.');
    Condition firstDotConditionP = new PunctuationValueCondition('.');
    Condition firstDotConditionT = new PunctuationValueCondition('.');
    Condition secondDotConditionQH = new PunctuationValueCondition('.');
    Condition secondDotConditionQI = new PunctuationValueCondition('.');
    Condition secondDotConditionQA = new PunctuationValueCondition('.');
    Condition secondDotConditionQD = new PunctuationValueCondition('.');
    Condition secondDotConditionQM = new PunctuationValueCondition('.');
    Condition secondDotConditionQO = new PunctuationValueCondition('.');
    Condition secondDotConditionQW = new PunctuationValueCondition('.');
    Condition secondDotConditionQP = new PunctuationValueCondition('.');
    Condition secondDotConditionBI = new PunctuationValueCondition('.');
    Condition secondDotConditionPR = new PunctuationValueCondition('.');
    Condition secondDotConditionTI = new PunctuationValueCondition('.');
    Condition thirdDotConditionQHS = new PunctuationValueCondition('.');
    Condition thirdDotConditionQAD = new PunctuationValueCondition('.');
    Condition thirdDotConditionQID = new PunctuationValueCondition('.');
    Condition thirdDotConditionQDS = new PunctuationValueCondition('.');
    Condition thirdDotConditionQMT = new PunctuationValueCondition('.');
    Condition thirdDotConditionQOD = new PunctuationValueCondition('.');
    Condition thirdDotConditionQWK = new PunctuationValueCondition('.');
    Condition thirdDotConditionQAM = new PunctuationValueCondition('.');
    Condition thirdDotConditionQPM = new PunctuationValueCondition('.');
    Condition thirdDotConditionBID = new PunctuationValueCondition('.');
    Condition thirdDotConditionPRN = new PunctuationValueCondition('.');
    Condition thirdDotConditionTID = new PunctuationValueCondition('.');

    startState.addTransition(new TextValueCondition("q", true),
        leftAbbreviateQState);
    startState.addTransition(new TextValueCondition("b", true),
        leftAbbreviateBState);
View Full Code Here


    State firstDotAState = new NamedState("FIRSTDOTA");
    State firstDotOState = new NamedState("FIRSTDOTO");
    State firstDotHState = new NamedState("FIRSTDOTH");
    State firstDotPState = new NamedState("FIRSTDOTP");

    Condition firstQDDotCondition = new PunctuationValueCondition('.');
    Condition secondQDDotCondition = new PunctuationValueCondition('.');
    Condition firstODDotCondition = new PunctuationValueCondition('.');
    Condition secondQHDotCondition = new PunctuationValueCondition('.');
    Condition secondODDotCondition = new PunctuationValueCondition('.');
    Condition firstAMDotCondition = new PunctuationValueCondition('.');
    Condition firstPMDotCondition = new PunctuationValueCondition('.');
    Condition secondAMDotCondition = new PunctuationValueCondition('.');
    Condition secondPMDotCondition = new PunctuationValueCondition('.');
    Condition firstHSDotCondition = new PunctuationValueCondition('.');
    Condition secondHSDotCondition = new PunctuationValueCondition('.');

    Condition soloCondition = new WordSetCondition(iv_singleWordSet, true);

    startState.addTransition(new TextValueCondition("q", true),
        leftAbbreviateQState);
View Full Code Here

    State middleATextState = new NamedState("MID_TEXT");
    State firstDashState = new NamedState("FIRSTDASH");
    State secondDashState = new NamedState("SECONDDASH");

    Condition integerCondition = new IntegerCondition();
    Condition firstDashCondition = new PunctuationValueCondition('-');
    Condition secondDashCondition = new PunctuationValueCondition('-');

    Condition numericStartCondition = new WordSetCondition(iv_frequencySet,
        false);
    Condition hyphenatedCondition = new WordSetCondition(iv_hyphenatedSet,
        false);
View Full Code Here

 
      State secondDotQtoWState = new NamedState("SECONDDOTQ2W");
 
 
      Condition firstDotConditionQ = new PunctuationValueCondition('.');
      Condition secondDotConditionQW = new PunctuationValueCondition('.');
      Condition thirdDotConditionQWK = new PunctuationValueCondition('.');

      Condition soloCondition = new TextSetCondition(iv_perWeekWordSet, false);
 
 
      startState.addTransition(new TextValueCondition("q", false),
View Full Code Here

    State rightAbbreviateTIDState = new NamedState("RIGHT_TID");
    State firstDotTState = new NamedState("FIRSTDOTT");
    State secondDotTtoIState = new NamedState("SECONDDOTT2I");
    State eightHourState = new NamedState("EIGHTHOUR");

    Condition firstDotConditionT = new PunctuationValueCondition('.');
    Condition secondDotConditionTI = new PunctuationValueCondition('.');
    Condition thirdDotConditionTID = new PunctuationValueCondition('.');
   
    Condition TTDCondition = new TextSetCondition(iv_threeTimesADayWordSet, false);
 
    startState.addTransition(new TextValueCondition("t", false),
        leftAbbreviateTState);
    startState.addTransition(new TextValueCondition("q", false),
        eightHourState);
    startState.addTransition(new IntegerValueCondition(8), eightHourState);
    startState.addTransition(TTDCondition, endState);
    startState.addTransition(new DisjoinCondition(new CombineCondition(new NegateCondition(new IntegerRangeCondition(1,7)), new IntegerCondition()), new IntegerValueCondition(8)), handleRangeState);
    startState.addTransition(new DisjoinCondition(new TextSetCondition(iv_postEightWordSet, false), new TextValueCondition("eight", false)), eightHourState);
 
    startState.addTransition(new AnyCondition(), startState);

    handleRangeState.addTransition(new PunctuationValueCondition('-'), hyphState);
    handleRangeState.addTransition(new AnyCondition(), startState);
   
    eightHourState.addTransition(new PunctuationValueCondition('-'), hyphState);
    eightHourState.addTransition(new TextValueCondition("to", false), hyphState);
    eightHourState.addTransition(new TextSetCondition(iv_hourlySuffixSet, false), endState);
    eightHourState.addTransition(new AnyCondition(), startState);

    leftAbbreviateTState.addTransition(firstDotConditionT, firstDotTState);
View Full Code Here

        twelveHourState.addTransition(new TextSetCondition(iv_hourlySuffixSet, false), endState);
        twelveHourState.addTransition(new TextSetCondition(iv_twiceADayWordSet, false), endState);
       // twelveHourState.addTransition(new RangeStrengthCondition(), endState);
        twelveHourState.addTransition(new AnyCondition(), startState);
       
    leftAbbreviateBState.addTransition(new PunctuationValueCondition('.'), firstDotBState);
    leftAbbreviateBState.addTransition(new AnyCondition(), startState);

    firstDotBState.addTransition(new TextValueCondition("i", false),
        middleAbbreviateBtoIState);
    firstDotBState.addTransition(new AnyCondition(), startState);

    middleAbbreviateBtoIState.addTransition(new PunctuationValueCondition('.'),
        secondDotBtoIState);
    middleAbbreviateBtoIState.addTransition(new AnyCondition(), startState);
   
    secondDotBtoIState.addTransition(new TextValueCondition("d", false),
        rightAbbreviateBIDState);
    secondDotBtoIState.addTransition(new AnyCondition(), startState);


    rightAbbreviateBIDState.addTransition(new PunctuationValueCondition('.'), endState);
    rightAbbreviateBIDState.addTransition(new AnyCondition (), startState);
   
    ntEndState.addTransition(new AnyCondition(), startState);
    endState.addTransition(new AnyCondition(), startState);
    return m;
View Full Code Here

        leftAbbreviateQState);
    startState.addTransition(EODCondition, endState);
    startState.addTransition(new TextValueCondition("every-other", false), EODState);
    startState.addTransition(new AnyCondition(), startState);
   
    leftAbbreviateQState.addTransition(new PunctuationValueCondition('.'),
        firstDotQState);
  //leftAbbreviateQState.addTransition(new RangeStrengthCondition(), endState);
    leftAbbreviateQState.addTransition(new AnyCondition(), startState);
   
    firstDotQState.addTransition(new TextValueCondition("a", false),
        middleAbbreviateQtoAState);
    firstDotQState.addTransition(new AnyCondition(), startState);
   
    middleAbbreviateQtoAState.addTransition(new PunctuationValueCondition('.'),
        secondDotQtoAState);
    middleAbbreviateQtoAState.addTransition(new AnyCondition(), startState);
   
    secondDotQtoAState.addTransition(new TextValueCondition("d", false),
        rightAbbreviateQADState);
    secondDotQtoAState.addTransition(new AnyCondition(), startState);
   
    EODState.addTransition(new TextSetCondition(iv_dailyWordSet, false), endState);
    EODState.addTransition(new AnyCondition(), startState);
   
    rightAbbreviateQADState.addTransition(new PunctuationValueCondition('.'), endState);
    rightAbbreviateQADState.addTransition(new AnyCondition(), startState);
   
   
    ntEndState.addTransition(new AnyCondition(), startState);
    endState.addTransition(new AnyCondition(), startState);
View Full Code Here

    startState.addTransition(new TextValueCondition("q", false),
        leftAbbreviateQState);
      startState.addTransition(new TextSetCondition(iv_everyOtherHourWordSet, false), endState);
    startState.addTransition(new AnyCondition(), startState);
   
    leftAbbreviateQState.addTransition(new PunctuationValueCondition('.'), firstDotQState);
    leftAbbreviateQState.addTransition(new AnyCondition(), startState);
   
    firstDotQState.addTransition(new TextValueCondition("o", false),
        middleAbbreviateQtoOState);
      firstDotQState.addTransition(new AnyCondition(),  startState);
     
    middleAbbreviateQtoOState.addTransition(new PunctuationValueCondition('.'),
        secondDotQtoOState);
    middleAbbreviateQtoOState.addTransition(new AnyCondition(), startState);
   
    secondDotQtoOState.addTransition(new TextValueCondition("d", false),
        rightAbbreviateQODState);
    secondDotQtoOState.addTransition(new AnyCondition(), startState);
   
    rightAbbreviateQODState.addTransition(new PunctuationValueCondition('.'), endState);
    rightAbbreviateQODState.addTransition(new AnyCondition(), startState);
   
  //  ntEndState.addTransition(new AnyCondition(), startState);
    endState.addTransition(new AnyCondition(), startState);
   
View Full Code Here

        asNeededState);
      startState.addTransition(new TextSetCondition(iv_prnWordSet, false), endState);
      startState.addTransition(new TextValueCondition("p", false), startPState);
    startState.addTransition(new AnyCondition(), startState);
   
    startPState.addTransition(new PunctuationValueCondition('.'), startPDOTState);
    startPState.addTransition(new AnyCondition(), startState);
   
    startPDOTState.addTransition(new TextValueCondition("r", false), startRState);
    startPDOTState.addTransition(new AnyCondition(), startState);
     
    startRState.addTransition(new PunctuationValueCondition('.'), startRDOTState);
    startRState.addTransition(new AnyCondition(), startState);
 
    startRDOTState.addTransition(new TextValueCondition("n", false), startNState);
    startRDOTState.addTransition(new AnyCondition(), startState);
   
    startNState.addTransition(new PunctuationValueCondition('.'), endState);
    startNState.addTransition(new AnyCondition(), startState);
   
   
    asNeededState.addTransition(new TextValueCondition("needed", false), endState);
    asNeededState.addTransition(new PunctuationValueCondition('-'), asNeededHyphState);
    asNeededState.addTransition(new AnyCondition(), startState);
   
    asNeededHyphState.addTransition(new TextValueCondition("needed", false), endState);
    asNeededHyphState.addTransition(new AnyCondition(), startState);
   
View Full Code Here

    startState.addTransition(new DisjoinCondition(new CombineCondition(new NegateCondition(new IntegerRangeCondition(1,5)), new IntegerCondition()), new IntegerValueCondition(6)), handleRangeState);
    startState.addTransition(new DisjoinCondition(new TextSetCondition(iv_postSixWordSet, false), new TextValueCondition("six", false)), sixHourState);

    startState.addTransition(new AnyCondition(), startState);
   
    handleRangeState.addTransition(new PunctuationValueCondition('-'), rangeHourState);
    handleRangeState.addTransition(new AnyCondition(), startState);
   
      leftAbbreviateQState.addTransition(new PunctuationValueCondition('.'), firstDotQState);
      leftAbbreviateQState.addTransition(new TextValueCondition("six", false), sixHourState);
      leftAbbreviateQState.addTransition(new IntegerValueCondition(6), sixHourState);

      leftAbbreviateQState.addTransition(new TextSetCondition(
        iv_fourTimesPerDayWordSet, false) , sixHourState);
      leftAbbreviateQState.addTransition(new AnyCondition(), startState);
     
     
      rangeHourState.addTransition(new IntegerRangeCondition(7,10), eightSuffixState);
      rangeHourState.addTransition(new TextValueCondition("seven", false), eightSuffixState);
      rangeHourState.addTransition(new TextValueCondition("eight", false), eightSuffixState);
      rangeHourState.addTransition(new TextValueCondition("nine", false), eightSuffixState);
      rangeHourState.addTransition(new TextValueCondition("ten", false), eightSuffixState);
      rangeHourState.addTransition(new AnyCondition(), startState);
     
      eightSuffixState.addTransition(new TextSetCondition(iv_hourlySuffixSet, false), endState);
      eightSuffixState.addTransition(new AnyCondition(), startState);
   
   
    sixHourState.addTransition(new PunctuationValueCondition('-'), rangeHourState);
    sixHourState.addTransition(new TextValueCondition("to", false), rangeHourState);
    sixHourState.addTransition(new TextSetCondition(iv_hourlySuffixSet, false), endState);
    sixHourState.addTransition(new TextSetCondition(iv_fourTimesPerDayWordSet, false), endState);
    sixHourState.addTransition(new AnyCondition(), startState);
     
    firstDotQState.addTransition(new TextValueCondition("d", false),
        middleAbbreviateQtoDState);
    firstDotQState.addTransition(new TextValueCondition("i", false),
        middleAbbreviateQtoIState);
      firstDotQState.addTransition(new AnyCondition(), startState);
     
    middleAbbreviateQtoDState.addTransition(new PunctuationValueCondition('.'),
        secondDotQtoDState);
    middleAbbreviateQtoDState.addTransition(new AnyCondition(), startState);
   
           
    secondDotQtoDState.addTransition(new TextValueCondition("s", false),
        rightAbbreviateQDSState);
    secondDotQtoDState.addTransition(new AnyCondition(), startState);
 
    secondDotQtoIState.addTransition(new TextValueCondition("d", false),
        rightAbbreviateQIDState);
    secondDotQtoIState.addTransition(new AnyCondition(), startState);
   
    middleAbbreviateQtoIState.addTransition(new PunctuationValueCondition('.'),
        secondDotQtoIState);
    middleAbbreviateQtoIState.addTransition(new AnyCondition(), startState);
 
    rightAbbreviateQDSState.addTransition(new PunctuationValueCondition('.'), endState);
    rightAbbreviateQDSState.addTransition(new AnyCondition(), startState);
   
    rightAbbreviateQIDState.addTransition(new PunctuationValueCondition('.'), endState);
    rightAbbreviateQIDState.addTransition(new AnyCondition(), startState);
   
    ntEndState.addTransition(new AnyCondition(), startState);
    endState.addTransition(new AnyCondition(), startState);
   
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.