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); }
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); }