Пример #1
0
 public SettingsDialog(
     IConversationSettingsService conversationSettingsService,
     IKanaTranscriptionService kanaTranscriptionService)
 {
     this.kanaTranscriptionService    = kanaTranscriptionService;
     this.conversationSettingsService = conversationSettingsService;
 }
 public WordLookUpDialog(
     IWordLookupService wordLookupService,
     MetaMessagingService metaMessagingService,
     IKanaTranscriptionService kanaTranscriptionService)
     : base(metaMessagingService)
 {
     this.conversationSettingsService = conversationSettingsService;
     this.kanaTranscriptionService    = kanaTranscriptionService;
     this.wordLookupService           = wordLookupService;
 }
 public RootDialog(
     WordLookUpDialog wordLookupDialog,
     TranslateDialog translateDialog,
     SettingsDialog settingsDialog,
     IFallbackIntentRecognitionService fallbackIntentRecognitionService,
     IConversationSettingsService conversationSettingsService)
 {
     this.conversationSettingsService = conversationSettingsService;
     this.settingsDialog = settingsDialog;
     this.fallbackIntentRecognitionService = fallbackIntentRecognitionService;
     this.translateDialog  = translateDialog;
     this.wordLookupDialog = wordLookupDialog;
 }
        public InMemoryKanaTranscriptionService(
            IConversationSettingsService conversationSettingsService)
        {
            this.conversationSettingsService      = conversationSettingsService;
            this.hiraganaToKatakanaTranscriptions = new Dictionary <string, string>
            {
                { "あ", "ア" },
                { "い", "イ" },
                { "う", "ウ" },
                { "え", "エ" },
                { "お", "オ" },

                { "か", "カ" },
                { "き", "キ" },
                { "く", "ク" },
                { "け", "ケ" },
                { "こ", "コ" },
                { "が", "ガ" },
                { "ぎ", "ギ" },
                { "ぐ", "グ" },
                { "げ", "ゲ" },
                { "ご", "ゴ" },

                { "さ", "サ" },
                { "し", "シ" },
                { "す", "ス" },
                { "せ", "セ" },
                { "そ", "ソ" },
                { "ざ", "ザ" },
                { "じ", "ジ" },
                { "ず", "ズ" },
                { "ぜ", "ゼ" },
                { "ぞ", "ゾ" },

                { "た", "タ" },
                { "ち", "チ" },
                { "つ", "ツ" },
                { "て", "テ" },
                { "と", "ト" },
                { "だ", "ダ" },
                { "で", "デ" },
                { "ど", "ド" },

                { "な", "ナ" },
                { "に", "ニ" },
                { "ぬ", "ヌ" },
                { "ね", "ネ" },
                { "の", "ノ" },

                { "は", "ハ" },
                { "ひ", "ヒ" },
                { "ふ", "フ" },
                { "へ", "ヘ" },
                { "ほ", "ホ" },
                { "ば", "バ" },
                { "び", "ビ" },
                { "ぶ", "ブ" },
                { "べ", "ベ" },
                { "ぼ", "ボ" },
                { "ぱ", "パ" },
                { "ぴ", "ピ" },
                { "ぷ", "プ" },
                { "ぺ", "ペ" },
                { "ぽ", "ポ" },

                { "ま", "マ" },
                { "み", "ミ" },
                { "む", "ム" },
                { "め", "メ" },
                { "も", "モ" },

                { "ら", "ラ" },
                { "り", "リ" },
                { "る", "ル" },
                { "れ", "レ" },
                { "ろ", "ロ" },

                { "わ", "ワ" },
                { "を", "ヲ" },
                { "や", "ヤ" },
                { "ゆ", "ユ" },
                { "よ", "ヨ" },
                { "ん", "ン" },


                { "ゃ", "ャ" },
                { "ゅ", "ュ" },
                { "ょ", "ョ" },
            };
        }