コード例 #1
0
        static void DoSpeechSplitByWords(List <Upgrade> upgrades, List <Pilot> pilots)
        {
            XWSpeech speech = new XWSpeech(pilots, upgrades);

            speech.splitIntoWords();

            speech.justWordList.Sort();

            List <string> verbs   = xwDictionary.getVerbs(speech.justWordList);
            List <string> nouns   = xwDictionary.getNouns(speech.justWordList);
            List <string> adVerbs = xwDictionary.getAdVerbs(speech.justWordList);
        }
コード例 #2
0
        static void DoXWDictionaryBuild(List <Upgrade> upgrades, List <Pilot> pilots)
        {
            XWSpeech speech = new XWSpeech(pilots, upgrades);

            speech.splitIntoWords();

            speech.justWordList.Sort();

            List <string> verbs   = xwDictionary.getVerbs(speech.justWordList);
            List <string> nouns   = xwDictionary.getNouns(speech.justWordList);
            List <string> adVerbs = xwDictionary.getAdVerbs(speech.justWordList);

            string outputVerbFileName   = xwDictionary.getDictionaryPath(Meta.PATH_TYPE.XW_VERB);
            string outputAdVerbFileName = xwDictionary.getDictionaryPath(Meta.PATH_TYPE.XW_AD_VERB);
            string outputNounFileName   = xwDictionary.getDictionaryPath(Meta.PATH_TYPE.XW_NOUN);

            xwDictionary.writeDictionaryData(verbs, outputVerbFileName);
            xwDictionary.writeDictionaryData(nouns, outputNounFileName);
            xwDictionary.writeDictionaryData(adVerbs, outputAdVerbFileName);
        }
コード例 #3
0
        static void DoSpeechSplitByPhrases(List <Upgrade> upgrades, List <Pilot> pilots)
        {
            XWSpeech speech = new XWSpeech(pilots, upgrades);

            speech.splitIntoPhrases();
        }