Code Search for Developers
 
 
  

Constituent.java from Texai at Krugle


Show Constituent.java syntax highlighted

/*
 * Constituent.java
 *
 * Created on January 5, 2007, 4:03 PM
 *
 * Description: Defines the behavior of a CxG construction constituent.
 *
 * Copyright (C) 2006 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;

import java.util.Set;
import org.texai.grammar.understanding.ActiveConstituent;

/**
 *
 * @author reed
 */
public interface Constituent {
  
  /** Gets the construction name.
   *
   * @return the construction name
   */
  String getName();
  
  /**
   * Sets the set of composed constructions that are activated by this word.
   * 
   * @param activatedComposedConstructions the set of composed constructions that are activated by this word
   */
  void setActivatedComposedConstructions(final Set<ComposedConstruction> activatedComposedConstructions);
  
  /** Gets the set of composed constructions that are activated by this word.
   *
   * @return the set of composed constructions that are activated by this word
   */
  Set<ComposedConstruction> getActivatedComposedConstructions();
  
 /** Decorates this construction with an active construction that contains the 
   * behavior and transient state for parsing text.
   *
   * @return an ActiveSimpleConstruction that decorates this object
   */
  ActiveConstituent decorate();

}




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