コード例 #1
0
ファイル: Program.cs プロジェクト: Liebeck/IWNLP.Lemmatizer
        static void LemmatizeIWNLP(List<CoNLLSentence> corpus, String exportPath)
        {
            Lemmatizer IWNLP = new Lemmatizer();
            IWNLP.Load(AppSettingsWrapper.IWNLPPath);

            int count = corpus.Count;
            for (int i = 0; i < count; i++)
            {
                CoNLLSentence sentence = corpus[i];
                IWNLPSentenceProcessor.ProcessSentence(sentence, IWNLP);
                //Console.WriteLine(i);
            }
            XMLSerializer.Serialize<List<CoNLLSentence>>(corpus, exportPath);

        }
コード例 #2
0
ファイル: Program.cs プロジェクト: Liebeck/IWNLP.Lemmatizer
        static void LemmatizeIWNLP(List <CoNLLSentence> corpus, string exportPath)
        {
            Lemmatizer IWNLP = new Lemmatizer();

            IWNLP.Load(AppSettingsWrapper.IWNLPPath);

            int count = corpus.Count;

            for (int i = 0; i < count; i++)
            {
                CoNLLSentence sentence = corpus[i];
                IWNLPSentenceProcessor.ProcessSentence(sentence, IWNLP);
                //Console.WriteLine(i);
            }
            XMLSerializer.Serialize <List <CoNLLSentence> >(corpus, exportPath);
        }