Esempio n. 1
0
        static void LemmatizeMorphy(List <CoNLLSentence> corpus, string exportPath)
        {
            Morphy morphy = new Morphy();

            morphy.InitMorphy(AppSettingsWrapper.MorphyCSV);
            int count = corpus.Count;

            for (int i = 0; i < count; i++)
            {
                CoNLLSentence sentence = corpus[i];
                morphy.ProcessSentence(sentence);
                //Console.WriteLine(i);
            }
            XMLSerializer.Serialize <List <CoNLLSentence> >(corpus, exportPath);
        }
Esempio n. 2
0
        static void LemmatizeMorphy(List<CoNLLSentence> corpus, String exportPath)
        {
            Morphy morphy = new Morphy();
            morphy.InitMorphy(AppSettingsWrapper.MorphyCSV);
            int count = corpus.Count;
            for (int i = 0; i < count; i++)
            {
                CoNLLSentence sentence = corpus[i];
                morphy.ProcessSentence(sentence);
                //Console.WriteLine(i);
            }
            XMLSerializer.Serialize<List<CoNLLSentence>>(corpus, exportPath);

        }