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

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


    State secondDashState = new NamedState("SECONDDASH");
 

    Condition firstDashCondition = new PunctuationValueCondition('-');
    Condition secondDashCondition = new PunctuationValueCondition('-');
    Condition rangeCombineCondition = new DisjoinCondition(
    new RangeCondition(),
    new RangeStrengthCondition()
    );
 
 
View Full Code Here


    State secondDashState = new NamedState("SECONDDASH");
 
 
    Condition firstDashCondition = new PunctuationValueCondition('-');
    Condition secondDashCondition = new PunctuationValueCondition('-');
    Condition rangeCombineCondition = new DisjoinCondition(
    new RangeCondition(),
    new RangeStrengthCondition()
    );
 
 
View Full Code Here

      State firstDotPState = new NamedState("FIRSTDOTP");

      //Condition secondPVDotCondition = new PunctuationValueCondition('.');
    Condition firstDashCondition = new PunctuationValueCondition('-');
    Condition secondDashCondition = new PunctuationValueCondition('-');
    Condition rangeCombineCondition = new DisjoinCondition(
    new RangeCondition(),
    new RangeStrengthCondition()
    );
 
 
View Full Code Here

      Condition firstPODotCondition = new PunctuationValueCondition('.');
      Condition secondPODotCondition = new PunctuationValueCondition('.');
    Condition firstDashCondition = new PunctuationValueCondition('-');
    Condition secondDashCondition = new PunctuationValueCondition('-');
    Condition rangeCombineCondition = new DisjoinCondition(
    new RangeCondition(),
    new RangeStrengthCondition()
    );
 
 
View Full Code Here

    State hyphState = new NamedState("HYPHTERM");
    State dosageState = new NamedState("DOSAGE");

    Condition decimalCondition = new DecimalCondition();
    Condition numberCondition = new NumberCondition();
    Condition strengthFormCondition = new DisjoinCondition(
        new RouteCondition(), new FormCondition());
    Condition numberTextCondition = new WordSetCondition(iv_textNumberSet,
        false);
    Condition rangeCondition = new RangeStrengthCondition();
    Condition fractionRangeCondition = new FractionStrengthCondition();
    Condition decimalStart = new DisjoinCondition(
        new IntegerValueCondition(0), new NumberCondition());

    startState.addTransition(new WordSetCondition(iv_soloTextSet, true),
        endState);
    startState.addTransition(numberCondition, dosageState);
    startState.addTransition(decimalCondition, dosageState);
    startState.addTransition(rangeCondition, dosageState);
    startState.addTransition(fractionRangeCondition, dosageState);
    startState.addTransition(numberTextCondition, dosageState);
    startState.addTransition(decimalStart, dosageState);
    /*startState.addTransition(new DisjoinCondition(new StrengthCondition(),
        new FormCondition()), formState);*/

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

    formState.addTransition(new WordSetCondition(iv_textNumberSet, true),
        ntFalseTermState);
    formState.addTransition(new AnyCondition(), startState);

    dosageState.addTransition(strengthFormCondition, ntEndState);
    dosageState
        .addTransition(new PunctuationValueCondition('-'), hyphState);

    dosageState.addTransition(new PunctuationValueCondition('('),
        leftParenState);
    dosageState.addTransition(new TextValueCondition("of", false), ofState);
    dosageState.addTransition(new AnyCondition(), startState);

    ofState.addTransition(new TextValueCondition("a", false), aState);
    ofState.addTransition(new AnyCondition(), startState);

    aState.addTransition(new DisjoinCondition(new RouteCondition(),
        new FormCondition()), ntEndState);
    aState.addTransition(new AnyCondition(), startState);

    hyphState.addTransition(new WordSetCondition(iv_soloTextSet, true),
        endState);
    hyphState.addTransition(new NumberCondition(), numState);
    hyphState.addTransition(new AnyCondition(), startState);

    numState.addTransition(new DisjoinCondition(new RouteCondition(),
        new FormCondition()), ntEndState);
    numState.addTransition(new AnyCondition(), startState);

    leftParenState.addTransition(new DisjoinCondition(
        new RouteCondition(), new FormCondition()), ntEndState);
    leftParenState.addTransition(new AnyCondition(), startState);

    ntEndState.addTransition(new AnyCondition(), startState);
    ntFalseTermState.addTransition(new AnyCondition(), startState);
View Full Code Here

    Condition notCollocC = new NegateCondition(negCollocC);

    startState.addTransition(negVerbC, negVerbState);
    startState.addTransition(negCollocC, negCollocState); // rule

    startState.addTransition(new DisjoinCondition(regModalC, regVerbC),
        regModalState); // start with a modal
    startState.addTransition(new DisjoinCondition(negPartC, negDetC),
        negPartState);

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

    regModalState.addTransition(negCollocC, negCollocState);
    negCollocState.addTransition(negColPartC, negColPartState); // out
    negColPartState.addTransition(new AnyCondition(), ntEndState);
    negCollocState.addTransition(new AnyCondition(), startState);

    regModalState.addTransition(new DisjoinCondition(negPartC, negDetC),
        negPartState);
    regModalState.addTransition(new AnyCondition(), anyState);

    anyState.addTransition(new DisjoinCondition(negPartC, negDetC),
        negPartState);
    anyState.addTransition(new AnyCondition(), startState);

    negPartState.addTransition(notCollocC, ntEndState);
    negVerbState.addTransition(notCollocC, ntEndState);
View Full Code Here

    State secondDashState = new NamedState("SECONDDASH");
 

    Condition firstDashCondition = new PunctuationValueCondition('-');
    Condition secondDashCondition = new PunctuationValueCondition('-');
    Condition rangeCombineCondition = new DisjoinCondition(
    new RangeCondition(),
    new RangeStrengthCondition()
    );
 
 
View Full Code Here

    State secondDashState = new NamedState("SECONDDASH");
 
 
    Condition firstDashCondition = new PunctuationValueCondition('-');
    Condition secondDashCondition = new PunctuationValueCondition('-');
    Condition rangeCombineCondition = new DisjoinCondition(
    new RangeCondition(),
    new RangeStrengthCondition()
    );
 
 
View Full Code Here

      State firstDotPState = new NamedState("FIRSTDOTP");

      //Condition secondPVDotCondition = new PunctuationValueCondition('.');
    Condition firstDashCondition = new PunctuationValueCondition('-');
    Condition secondDashCondition = new PunctuationValueCondition('-');
    Condition rangeCombineCondition = new DisjoinCondition(
    new RangeCondition(),
    new RangeStrengthCondition()
    );
 
 
View Full Code Here

      Condition firstPODotCondition = new PunctuationValueCondition('.');
      Condition secondPODotCondition = new PunctuationValueCondition('.');
    Condition firstDashCondition = new PunctuationValueCondition('-');
    Condition secondDashCondition = new PunctuationValueCondition('-');
    Condition rangeCombineCondition = new DisjoinCondition(
    new RangeCondition(),
    new RangeStrengthCondition()
    );
 
 
View Full Code Here

TOP

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

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.