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

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


    startState.addTransition(new DisjoinCondition(new CombineCondition(new NegateCondition(new IntegerRangeCondition(1,3)), new IntegerCondition()), new IntegerValueCondition(4)), handleRangeState);
    startState.addTransition(new DisjoinCondition(new TextSetCondition(iv_postFourWordSet, false), new TextValueCondition("four", false)), fourHourState);
   
    startState.addTransition(new AnyCondition(), startState);
   
    handleRangeState.addTransition(new PunctuationValueCondition('-'), hyphState);
    handleRangeState.addTransition(new AnyCondition(), startState);
   
    fourHourState.addTransition(new PunctuationValueCondition('-'), hyphState);
    fourHourState.addTransition(new TextValueCondition("to", false), hyphState);
    //fourHourState.addTransition(new TextSetCondition(iv_hourlySuffixSet, false), endState);
   
    fourHourState.addTransition(new AnyCondition(), startState);
   
    firstDotQState.addTransition(new TextValueCondition("d", false),
        middleAbbreviateQtoDState);

        firstDotQState.addTransition(new AnyCondition(), startState);
       
        hyphState.addTransition(new IntegerRangeCondition(5,8), numState);
        hyphState.addTransition(new TextValueCondition("five", false), numState);
        hyphState.addTransition(new TextValueCondition("six", false), numState);
        hyphState.addTransition(new TextValueCondition("seven", false), numState);
        hyphState.addTransition(new TextValueCondition("eight", false), numState);
        hyphState.addTransition(new AnyCondition(), startState);
       
        numState.addTransition(new TextSetCondition(iv_hourlySuffixSet, false), endState);
        numState.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);

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


     
      leftAbbreviateState.addTransition(specificWordCondition, endState);
      leftAbbreviateState.addTransition(new TextValueCondition("time", false), endState);
      leftAbbreviateState.addTransition(new AnyCondition(), startState);
     
      leftAbbreviateQState.addTransition(new PunctuationValueCondition('.'), firstDotQState);
      leftAbbreviateQState.addTransition(new AnyCondition(), startState);
       
      leftAbbreviateOState.addTransition(new PunctuationValueCondition('.'), firstDotOState);
      leftAbbreviateOState.addTransition(new AnyCondition(), startState);
     
      leftAbbreviateHState.addTransition(new PunctuationValueCondition('.'), firstDotHState);
      leftAbbreviateHState.addTransition(new AnyCondition(), startState);
     
      firstDotQState.addTransition(new TextValueCondition("d", false),
          rightAbbreviateQDState);
      firstDotQState.addTransition(new TextValueCondition("h", false),
          middleAbbreviateQtoHState);
      firstDotQState.addTransition(new AnyCondition(), startState);
     
      firstDotOState.addTransition(new TextValueCondition("d", false),
          rightAbbreviateODState);
      firstDotOState.addTransition(new AnyCondition(), startState);
     
      middleAbbreviateQtoHState.addTransition(new PunctuationValueCondition('.'),
          secondDotQtoHState);
      middleAbbreviateQtoHState.addTransition(new AnyCondition(), startState);
     
      leftAbbreviateAState.addTransition(new PunctuationValueCondition('.'), firstDotAState);
      //leftAbbreviateAState.addTransition(soloCondition, endState);
      leftAbbreviateAState.addTransition(new AnyCondition(), startState);
   
      leftAbbreviatePState.addTransition(new PunctuationValueCondition('.'), firstDotPState);
      leftAbbreviatePState.addTransition(new AnyCondition(), startState);
   
      firstDotAState.addTransition(new TextValueCondition("m", false),
          rightAbbreviateAMState);
      firstDotAState.addTransition(new AnyCondition(), startState);
     

       
      firstDotPState.addTransition(new TextValueCondition("m", false),
          rightAbbreviatePMState);
      firstDotPState.addTransition(new AnyCondition(), startState);
     
      secondDotQtoHState.addTransition(new TextValueCondition("s", false),
          rightAbbreviateQHSState);
     
      secondDotQtoHState.addTransition(new AnyCondition(), startState);
     

      rightAbbreviateAMState.addTransition(new PunctuationValueCondition('.'), endState);
      rightAbbreviateAMState.addTransition(new AnyCondition(), startState);
   
      rightAbbreviatePMState.addTransition(new PunctuationValueCondition('.'), endState);
      rightAbbreviatePMState.addTransition(new AnyCondition(), startState);
     
      firstDotHState.addTransition(new TextValueCondition("s", false),
          rightAbbreviateHSState);
      firstDotHState.addTransition(new AnyCondition(), startState);
     
      rightAbbreviateODState.addTransition(new PunctuationValueCondition('.'), endState);
      rightAbbreviateODState.addTransition(new AnyCondition(), startState);
     
      rightAbbreviateQDState.addTransition(new PunctuationValueCondition('.'), endState);
      rightAbbreviateQDState.addTransition(new AnyCondition(), startState);
   
      rightAbbreviateHSState.addTransition(new PunctuationValueCondition('.'), endState);
      rightAbbreviateHSState.addTransition(new AnyCondition(), startState);
     
      rightAbbreviateQHSState.addTransition(new AnyCondition(), startState);
     
      ntEndState.addTransition(new AnyCondition(), startState);
View Full Code Here

 
   
 
    Condition suffixCondition = new TextSetCondition(iv_yearlySuffixSet,
        false);
    Condition forwardSlashCondition = new PunctuationValueCondition('/');
   
 
 
    ntStartState.addTransition(forwardSlashCondition, forwardSlashState);
    ntStartState.addTransition(new AnyCondition(), ntStartState);
View Full Code Here

 
   
 
    Condition suffixCondition = new TextSetCondition(iv_monthlySuffixSet,
        false);
    Condition forwardSlashCondition = new PunctuationValueCondition('/');
   
 
 
    ntStartState.addTransition(forwardSlashCondition, forwardSlashState);
    ntStartState.addTransition(new AnyCondition(), ntStartState);
View Full Code Here

 
   
 
    Condition suffixCondition = new TextSetCondition(iv_weeklySuffixSet,
        false);
    Condition forwardSlashCondition = new PunctuationValueCondition('/');
   
 
 
    ntStartState.addTransition(forwardSlashCondition, forwardSlashState);
    ntStartState.addTransition(new AnyCondition(), ntStartState);
View Full Code Here

 
   
 
    Condition suffixCondition = new TextSetCondition(iv_dailySuffixSet,
        false);
    Condition forwardSlashCondition = new PunctuationValueCondition('/');
   
 
 
    ntStartState.addTransition(forwardSlashCondition, forwardSlashState);
    ntStartState.addTransition(new AnyCondition(), ntStartState);
View Full Code Here

     

      Condition suffixCondition = new TextSetCondition(iv_hourlySuffixSet,
          false);
      Condition forwardSlashCondition = new PunctuationValueCondition('/');
     

 
      ntStartState.addTransition(forwardSlashCondition, forwardSlashState);
      ntStartState.addTransition(new AnyCondition(), ntStartState);
View Full Code Here

    startState.addTransition(new IntegerValueCondition(5), fiveHourState);
    startState.addTransition(new TextValueCondition("five", false), fiveHourState);

    startState.addTransition(new AnyCondition(), startState);
   
    handleRangeState.addTransition(new PunctuationValueCondition('-'), hyphState);
    handleRangeState.addTransition(new AnyCondition(), startState);
   
    fiveHourState.addTransition(new TextSetCondition(iv_hourlySuffixSet, false), endState);
    fiveHourState.addTransition(new AnyCondition(), startState);
   
View Full Code Here

    startState.addTransition(subFirstBegin, medState);
      startState.addTransition(new AnyCondition(), startState);
     
    medState.addTransition(subFirstNext, endState);
    medState.addTransition(subFirstMid, midWordState);
    medState.addTransition(new PunctuationValueCondition(':'), endState);
    //medState.addTransition(new PunctuationValueCondition('/'), ntEndState);
    medState.addTransition(new AnyCondition(), startState);
   
    midWordState.addTransition(subFirstNext, endState);
    midWordState.addTransition(new PunctuationValueCondition(':'), endState);
    midWordState.addTransition(new AnyCondition(), startState);
   
    ntEndState.addTransition(new AnyCondition(),  startState);
    endState.addTransition(new AnyCondition(), startState);
    return m;
View Full Code Here

 
    startState.addTransition(subFirstBegin, medState);
      startState.addTransition(new TextValueCondition("p", false), firstDotState);
      startState.addTransition(new AnyCondition(), startState);
     
      firstDotState.addTransition(new PunctuationValueCondition('.'), rState);
      firstDotState.addTransition(new AnyCondition(), startState);
     
      rState.addTransition(new TextValueCondition("r", false), secondDotState);
      rState.addTransition(new AnyCondition(), startState);
     
      secondDotState.addTransition(new PunctuationValueCondition('.'), nState);
      secondDotState.addTransition(new AnyCondition(), startState);
     
      nState.addTransition(new TextValueCondition("n", false), thirdDotState);
      nState.addTransition(new AnyCondition(), startState);
     
      thirdDotState.addTransition(new PunctuationValueCondition('.'), medState);
      thirdDotState.addTransition(new AnyCondition(), startState);
     
    medState.addTransition(subFirstNext, endState);
    medState.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.