Code Search for Developers
 
 
  

GrammarConstants.java from Texai at Krugle


Show GrammarConstants.java syntax highlighted

/*
 * GrammarConstants.java
 *
 * Created on January 14, 2007, 3:17 PM
 *
 * Description: Provides constants used in the construction grammar.
 *
 * Copyright (C) 2007 Stephen L. Reed.
 *
 * This program is free software; you can redistribute it and/or modify it under the terms
 * of the GNU General Public License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with this program;
 * if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

package org.texai.grammar;

/**
 *
 * @author reed
 */
public final class GrammarConstants {
  
  // Construction names end with the suffix "%Construction" to distinguish them
  // from ordinary word constructions which use the word or phrase as their name.
  
  /** the name of the FormalGreetingToMe construction */
  public static final String CXN_FORMAL_GREETING_TO_ME = "FormalGreetingToMe_Construction";
  
  /** the name of the FromUser construction */
  public static final String CXN_FROM_USER = "FromUser_Construction";
  
  /** the name of the NewConversation construction */
  public static final String CXN_NEW_CONVERSATION = "NewConversation_Construction";
  
  /** the name of the UtteranceToMe construction */
  public static final String CXN_UTTERANCE_TO_ME = "UtteranceToMe_Construction";
  
  /** the name of the SomeoneStartingAConversationWithMe construction */
  public static final String CXN_SOMEONE_STARTING_A_CONVERSATION_WITH_ME = "SomeoneStartingAConversationWithMe_Construction";
  
  
  // Regular expression construction names 
  
  /** the name of the SomeoneStartingAConversationWithMe construction */
  public static final String CXN_REGEX_USER_ID = "UserId_RegularExpressionConstruction";
  
  
  
  // Construction tag names
  
  /** the open body token */
  public static final String TAG_OPEN_BODY = "<BODY>";
  
  /** the close body token */
  public static final String TAG_CLOSE_BODY = "</BODY>";
    
  /** the open from user token */
  public static final String TAG_OPEN_FROM_USER = "<FROM-USER>";
  
  /** the close from user token */
  public static final String TAG_CLOSE_FROM_USER = "</FROM-USER>";
    
  /** the new-conversation token */
  public static final String TAG_NEW_CONVERSATION = "<NEW-CONVERSATION />";
  
  // words
  
  /** the word hello */
  public static final String WORD_HELLO = "hello";
  
  
  // substitution variables
  
  /** the :CONVERSATION substitution variable */
  public static final String SYMBOL_CONVERSATION = ":CONVERSATION";
  
  /** the :DIALOG-USER substitution variable */
  public static final String SYMBOL_DIALOG_USER = ":DIALOG-USER";
  
  /** the :JABBER-HOST substitution variable */
  public static final String SYMBOL_JABBER_HOST = ":JABBER-HOST";
  
  /** the :NOW substitution variable */
  public static final String SYMBOL_NOW = ":NOW";
  
  /** the :USER-NAME substitution variable */
  public static final String SYMBOL_USER_NAME = ":USER-NAME";
  
  
  
  /** the empty string */
  public static final String EMPTY_STRING = "";
  
  /**
   * Creates a new instance of GrammarConstants but this class is never instantiated.
   */
  protected GrammarConstants() {
    super();
  }
  
}




See more files for this project here

Texai

Texai is an chatbot that intelligently seeks to acquire knowledge and friendly behaviors.

Project homepage: http://sourceforge.net/projects/texai
Programming language(s): Java,Shell Script,XML
License: other

  domainEntity/
    AbstractComposedConstruction.java
    AbstractConstruction.java
    AlternativeConstruction.java
    CategoryConstruction.java
    ConstituentAdapter.java
    OptionalConstruction.java
    RegularExpression.java
    RegularExpression_GroupVariableInfo.java
    RepetitiveConstruction.java
    SequenceConstruction.java
    SimpleConstruction.java
    ValidateGrammarEntities.java
    WordFormConstruction.java
    WordSenseConstruction.java
    XMLTagWord.java
  integration/
    IntegrationGraph.java
    Link.java
    Node.java
  understanding/
    AbstractActiveComposedConstruction.java
    AbstractActiveConstruction.java
    ActiveAbstractComposedConstruction.java
    ActiveAlternativeConstruction.java
    ActiveCategoryConstruction.java
    ActiveComposedConstruction.java
    ActiveComposedConstructionSet.java
    ActiveConstituent.java
    ActiveOptionalConstruction.java
    ActiveRegularExpression.java
    ActiveRepetitiveConstruction.java
    ActiveSequenceConstruction.java
    ActiveSimpleConstruction.java
    ActiveWordFormConstruction.java
    ActiveXMLTagWord.java
  ComposedConstruction.java
  Constituent.java
  ConstructionInitializer.java
  GrammarConstants.java
  Token.java
  Tokenizer.java