Example #1
0
        //static void LemmatizeMate(List<CoNLLSentence> corpus, String exportPath, MateTools mateTools)
        //{
        //    int count = corpus.Count;
        //    for (int i = 0; i < count; i++)
        //    {
        //        CoNLLSentence sentence = corpus[i];
        //        mateTools.ProcessSentence(sentence);
        //        Console.WriteLine(i);
        //    }
        //    XMLSerializer.Serialize<List<CoNLLSentence>>(corpus, exportPath);

        //}

        static void LemmatizeTreeTagger(List <CoNLLSentence> corpus, string exportPath, TreeTagger treeTagger)
        {
            int count = corpus.Count;

            for (int j = 0; j < count; j++)
            {
                CoNLLSentence sentence = corpus[j];
                treeTagger.ProcessSentence(sentence);
                Console.WriteLine(j);
            }
            XMLSerializer.Serialize <List <CoNLLSentence> >(corpus, exportPath);
        }
Example #2
0
        static void LemmatizeTreeTagger(List<CoNLLSentence> corpus, String exportPath, TreeTagger treeTagger)
        {
            int count = corpus.Count;
            for (int j = 0; j < count; j++)
            {
                CoNLLSentence sentence = corpus[j];
                treeTagger.ProcessSentence(sentence);
                Console.WriteLine(j);
            }
            XMLSerializer.Serialize<List<CoNLLSentence>>(corpus, exportPath);


        }