Package org.apache.ctakes.core.fsm.token

Examples of org.apache.ctakes.core.fsm.token.TextToken


    // Add dummy token to end of the list
    // This is a workaround for cases where a meaningful token occurs at the
    // end of the list. Since there are no more tokens, the FSM cannot push
    // itself into the next state. The dummy token's intent is to provide
    // that extra token.
    fsmTokenList.add(new TextToken() {

      public String getText() {
        return "+DUMMY_TOKEN+";
      }
View Full Code Here


    // Add dummy token to end of the list
    // This is a workaround for cases where a meaningful token occurs at the
    // end of the list. Since there are no more tokens, the FSM cannot push
    // itself into the next state. The dummy token's intent is to provide
    // that extra token.
    fsmTokenList.add(new TextToken() {

      public String getText() {
        return "+DUMMY_TOKEN+";
      }
View Full Code Here

   * Called to check if the conditional meets the criteria defined by this
   * state.
   */
  public boolean satisfiedBy(Object conditional) {
    if (conditional instanceof TextToken) {
      TextToken t = (TextToken) conditional;
      String text = t.getText();
      if (!iv_isCaseSensitive) {
        text = text.toLowerCase();
      }

      if (iv_textSet.contains(text)) {
View Full Code Here

   * Called to check if the conditional meets the criteria defined by this
   * state.
   */
  public boolean satisfiedBy(Object conditional) {
    if (conditional instanceof TextToken) {
      TextToken t = (TextToken) conditional;
      if (isEqual(t.getText(), iv_word)) {
        return true;
      }
    }

    return false;
View Full Code Here

        // Add dummy token to end of the list
        // This is a workaround for cases where a meaningful token occurs at the
        // end of the list. Since there are no more tokens, the FSM cannot push
        // itself into the next state. The dummy token's intent is to provide
        // that extra token.
        fsmTokenList.add(new TextToken()
        {

            public String getText()
            {
                return "+DUMMY_TOKEN+";
View Full Code Here

   * Called to check if the conditional meets the criteria defined by this
   * state.
   */
  public boolean satisfiedBy(Object conditional) {
    if (conditional instanceof TextToken) {
      TextToken t = (TextToken) conditional;
      String text = t.getText();
      String subText = "";
      boolean containsNums = false;
      boolean doneHere = false;
      int textSize = text.length();
      int pos = 0;
View Full Code Here

TOP

Related Classes of org.apache.ctakes.core.fsm.token.TextToken

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.