Пример #1
0
        /// <inheritdoc/>
        protected override ActRepresentation initializeDialogActRepresentation()
        {
            var representation = new ActRepresentation("ChitChatAnswer");

            representation.AddParameter("domain", _domain);
            return(representation);
        }
Пример #2
0
        /// <inheritdoc/>
        protected override ActRepresentation initializeDialogActRepresentation()
        {
            var representation = new ActRepresentation("RequestEntityLabel");

            representation.AddParameter("phrase", _phrase);
            return(representation);
        }
Пример #3
0
        /// <inheritdoc/>
        public override ActRepresentation GetDialogAct()
        {
            var act = new ActRepresentation("ChitChat");

            act.AddParameter("domain", Domain);
            return(act);
        }
Пример #4
0
        /// <inheritdoc/>
        protected override ActRepresentation initializeDialogActRepresentation()
        {
            var representation = new ActRepresentation("DirectAnswerHintQuestion");

            representation.AddParameter("question", _question.OriginalSentence);
            return(representation);
        }
        /// <inheritdoc/>
        protected override ActRepresentation initializeDialogActRepresentation()
        {
            var representation = new ActRepresentation("WelcomeWithRephraseRequest");

            representation.AddParameter("question", _question.OriginalSentence);
            return(representation);
        }
Пример #6
0
        /// <inheritdoc/>
        public override ActRepresentation GetDialogAct()
        {
            var act = new ActRepresentation("Question");

            act.AddParameter("question", Question);
            return(act);
        }
Пример #7
0
        /// <inheritdoc/>
        public override ActRepresentation GetDialogAct()
        {
            var unrecognized = new ActRepresentation("Unrecognized");

            unrecognized.AddParameter("utterance", Utterance);

            return(unrecognized);
        }
        /// <inheritdoc/>
        protected override ActRepresentation initializeDialogActRepresentation()
        {
            var representation = new ActRepresentation("RephraseQuestionPropose");

            representation.AddParameter("question", _question.OriginalSentence);
            representation.AddParameter("at_least", _isAtLeast);
            return(representation);
        }
Пример #9
0
        /// <inheritdoc/>
        protected override ActRepresentation initializeDialogActRepresentation()
        {
            var act = new ActRepresentation("NoConnectionToEntity");

            act.AddParameter("entity", _entity);

            return(act);
        }
Пример #10
0
        /// <inheritdoc/>
        public override ActRepresentation GetDialogAct()
        {
            var act = new ActRepresentation("Advice");

            act.AddParameter("answer", Answer);

            return(act);
        }
Пример #11
0
        /// <inheritdoc/>
        protected override ActRepresentation initializeDialogActRepresentation()
        {
            var representation = new ActRepresentation("RequestAnswer");

            representation.AddParameter("at_least", _isAtLeastRequest);

            return(representation);
        }
Пример #12
0
        /// <inheritdoc/>
        public override ActRepresentation GetDialogAct()
        {
            if (_dialogActRepresentation == null)
            {
                _dialogActRepresentation = initializeDialogActRepresentation();
            }

            return(_dialogActRepresentation);
        }
Пример #13
0
        /// <inheritdoc/>
        public override string GetDialogActRepresentation()
        {
            if (_dialogActRepresentation == null)
            {
                _dialogActRepresentation = initializeDialogActRepresentation();
            }

            return(_dialogActRepresentation.ToFunctionalRepresentation());
        }
Пример #14
0
        /// <inheritdoc/>
        protected override ActRepresentation initializeDialogActRepresentation()
        {
            var representation = new ActRepresentation("EdgeConfirmationRequest");

            representation.AddParameter("label1", _label1);
            representation.AddParameter("relationFormat", _relationFormat);
            representation.AddParameter("label2", _label2);
            return(representation);
        }
Пример #15
0
        /// <inheritdoc/>
        public override ActRepresentation GetDialogAct()
        {
            var act = new ActRepresentation("Affirm");

            if (_expression != null)
            {
                act.AddParameter("expression", _expression);
            }

            return(act);
        }
Пример #16
0
        /// <inheritdoc/>
        protected override ActRepresentation initializeDialogActRepresentation()
        {
            var typeName = this.GetType().Name;

            if (!typeName.EndsWith("Act"))
            {
                throw new FormatException("Act name does not follow naming conventions");
            }

            var act = new ActRepresentation(typeName.Substring(0, typeName.Length - 3));

            act.AddParameter("_continuation", _continuation);
            return(act);
        }
Пример #17
0
 public void ReportParameter(string name, ActRepresentation value)
 {
     _storage.Add(name, value);
 }