generation.sentence
Class CDRCEven

java.lang.Object
  extended by generation.sentence.CDRC
      extended by generation.sentence.CDRCEven

public class CDRCEven
extends CDRC

An extension of CDRC-P algorithm with a length control mechanism

Author:
XZW

Constructor Summary
CDRCEven(MyGrammar grammar)
          Creates an instance
 
Method Summary
 MySentence[] generateSentences(int iWeight)
          Returns the sentences satisfying context-dependent rule coverage and length control
 
Methods inherited from class generation.sentence.CDRC
generateSentences
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDRCEven

public CDRCEven(MyGrammar grammar)
Creates an instance

Parameters:
grammar - the grammar to generate sentences
Method Detail

generateSentences

public MySentence[] generateSentences(int iWeight)
Returns the sentences satisfying context-dependent rule coverage and length control

Parameters:
iWeight - the weight of reference length
Returns:
the sentences