コード例 #1
0
 public override void initialise()
 {
     _syntax  = new SyntaxProcessor();
     _factory = new NLGFactory();
 }
コード例 #2
0
        /**
         * Creates a new instance of AggregationRule
         */

        public AggregationRule()
        {
            factory = new NLGFactory();
        }
コード例 #3
0
        /**
         * Set the factory that the rule should use to create phrases.
         *
         * @param factory
         *            the factory
         */

        public void setFactory(NLGFactory factory)
        {
            this.factory = factory;
        }
コード例 #4
0
 public NPPhraseSpec(NLGFactory phraseFactory) : base(new PhraseCategory_NOUN_PHRASE())
 {
     setFeature(Feature.ELIDED.ToString(), false);
     this.setFactory(phraseFactory);
 }